# 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 = "ezsockets" version = "0.6.4" authors = ["Grzegorz BaraƄski "] description = "WebSockets server & client made easy" readme = "README.md" keywords = [ "websocket", "networking", "async", "wasm", ] categories = [ "asynchronous", "network-programming", "web-programming::websocket", ] license = "MIT" repository = "https://github.com/gbaranski/ezsockets" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] crate-type = [ "cdylib", "rlib", ] [[test]] name = "axum" required-features = ["axum"] [[test]] name = "tungstenite" required-features = ["tungstenite"] [[bench]] name = "my_benchmark" harness = false [dependencies.async-channel] version = "1.9.0" [dependencies.async-trait] version = "0.1.52" [dependencies.atomic_enum] version = "0.2.0" [dependencies.axum] version = "0.6.1" optional = true [dependencies.axum-core] version = "0.3.0" optional = true [dependencies.base64] version = "0.21.0" [dependencies.bytes] version = "1.3.0" optional = true [dependencies.cfg-if] version = "1.0.0" [dependencies.enfync] version = "0.1.0" [dependencies.fragile] version = "2.0" optional = true [dependencies.futures] version = "0.3.21" [dependencies.futures-util] version = "0.3.25" default-features = false [dependencies.http] version = "0.2.8" [dependencies.http-body] version = "0.4.5" optional = true [dependencies.hyper] version = "0.14.23" optional = true [dependencies.sha-1] version = "0.10.1" optional = true [dependencies.tokio-native-tls] version = "0.3.1" optional = true [dependencies.tokio-rustls] version = "0.24.1" optional = true [dependencies.tokio-tungstenite] version = "0.20.0" optional = true [dependencies.tokio-tungstenite-wasm] version = "0.2.1" optional = true [dependencies.tracing] version = "0.1.31" [dependencies.tungstenite] version = "0.20.0" [dependencies.url] version = "2.2.2" [dev-dependencies.criterion] version = "0.4" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.tokio] version = "1.17.0" features = ["full"] [dev-dependencies.tracing-subscriber] version = "0.3.9" [features] axum = [ "server", "dep:axum", "axum-core", "bytes", "futures-util/alloc", "http-body", "hyper", "sha-1", ] client = ["tokio-tungstenite-wasm"] default = [ "native_client", "server", ] native-tls = [ "tls", "tokio-native-tls", "tokio-tungstenite/native-tls", ] native_client = [ "client", "tokio/rt", "tokio-tungstenite", ] rustls = [ "tls", "tokio-rustls", "tokio-tungstenite/rustls-tls-webpki-roots", ] server = [ "tokio-tungstenite", "tokio-tungstenite-wasm", "tokio/rt", ] tls = [] tungstenite = ["server"] wasm_client = [ "client", "fragile", ] [target."cfg(not(target_family = \"wasm\"))".dependencies.tokio] version = "1.17.0" features = [ "sync", "macros", "time", ] [target."cfg(target_family = \"wasm\")".dependencies.getrandom] version = "0.2" features = ["js"] [target."cfg(target_family = \"wasm\")".dependencies.wasm-bindgen-futures] version = "0.4" [target."cfg(target_family = \"wasm\")".dependencies.wasmtimer] version = "0.2.0"