# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "stream-ws" version = "0.1.1" authors = ["idkana "] exclude = ["/examples/web-client"] description = "A layer over WebSocket enables carrying byte stream, for both native and WebAssembly." homepage = "https://github.com/idkidknow/stream-ws" readme = "README.md" keywords = [ "websocket", "stream", "io", "async", "wasm", ] categories = [ "network-programming", "asynchronous", "web-programming::websocket", "wasm", ] license = "MIT OR Apache-2.0" repository = "https://github.com/idkidknow/stream-ws" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "echo_server" path = "examples/echo_server.rs" required-features = [ "tokio", "tungstenite", ] [[example]] name = "print_self_server" path = "examples/print_self_server.rs" required-features = [ "tokio", "tungstenite", ] [[example]] name = "std_io_client" path = "examples/std_io_client.rs" required-features = [ "tokio", "tungstenite", ] [dependencies.futures] version = "0.3" [dependencies.gloo-net] version = "0.4" optional = true [dependencies.pin-project] version = "1" [dependencies.tokio] version = "1" optional = true [dependencies.tungstenite] version = "0.20" optional = true [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tokio-tungstenite] version = "0.20" [features] gloo = ["dep:gloo-net"] tokio = ["dep:tokio"] tungstenite = ["dep:tungstenite"]