[package] authors = ["The authors"] categories = ["asynchronous", "web-programming", "wasm"] description = "Autogenerated async RPC bindings that instantly connect a JS frontend to a Rust backend service via WebSockets and WASM." documentation = "https://docs.rs/turbocharger" edition = "2021" keywords = ["async", "web", "wasm", "rpc"] license = "MIT OR Apache-2.0 OR CC0-1.0" name = "turbocharger" readme = "../README.md" repository = "https://github.com/trevyn/turbocharger" rust-version = "1.62" version = "0.4.0" [dependencies] bincode = "1" futures-channel = {version = "0.3", features = ["sink"]} futures-util = "0.3" once_cell = "1" serde = {version = "1", features = ["derive"]} tracked = "0.5" turbocharger-impl = {path = "../turbocharger-impl", version = "=0.4.0"} console_error_panic_hook = {version = "0.1", optional = true} dioxus = {version = "0.2", optional = true} [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = "0.3" wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" web-sys = {version = "0.3", features = ["Location", "Window"]} ws_stream_wasm = "0.7" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] acme-lib = {version = "0.8", optional = true} async-stream = "0.3" async-trait = "0.1" axum = {version = "0.5", features = ["ws", "headers", "http2"], optional = true} hyper = {version = "0.14", optional = true} log = "0.4" mime_guess = {version = "2", optional = true} rust-embed = {version = "6", optional = true} rustls-pemfile = {version = "1", optional = true} stream-cancel = "0.8" tokio = "1" tokio-rustls = {version = "0.23", optional = true} tokio-stream = {version = "0.1", features = ["net"]} turbosql = {version = "0.7", optional = true} typetag = "0.2" js-sys = {version = "0.3", optional = true} wasm-bindgen = {version = "0.2", optional = true} wasm-bindgen-futures = {version = "0.4", optional = true} web-sys = {version = "0.3", features = ["Location", "Window"], optional = true} ws_stream_wasm = {version = "0.7", optional = true} [features] axum = ["dep:axum", "rust-embed", "mime_guess"] debug_expansions = ["turbocharger-impl/debug_expansions"] default = ["console_error_panic_hook"] full = ["axum", "dioxus", "tls", "svelte"] svelte = ["turbocharger-impl/svelte"] tls = ["tokio-rustls", "rustls-pemfile", "hyper", "acme-lib", "turbosql"] wasm = ["js-sys", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", "ws_stream_wasm"] [dev-dependencies] wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4"