# 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" rust-version = "1.79" name = "tokio-websockets" version = "0.10.1" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "High performance, strict, tokio-util based WebSockets implementation" readme = "README.md" categories = [ "web-programming::websocket", "network-programming", "asynchronous", "concurrency", ] license = "MIT" repository = "https://github.com/Gelbpunkt/tokio-websockets/" [package.metadata.docs.rs] features = [ "client", "aws_lc_rs", "ring", "fastrand", "getrandom", "rand", "server", "simd", "native-tls", "rustls-native-roots", "rustls-webpki-roots", "rustls-platform-verifier", "rustls-tls12", "nightly", ] rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] opt-level = 3 lto = true codegen-units = 1 debug = 0 incremental = false [lib] name = "tokio_websockets" path = "src/lib.rs" [[example]] name = "autobahn_client" path = "examples/autobahn_client.rs" required-features = ["client"] [[example]] name = "autobahn_server" path = "examples/autobahn_server.rs" required-features = ["server"] [[example]] name = "client" path = "examples/client.rs" required-features = ["client"] [[example]] name = "echo_server" path = "examples/echo_server.rs" required-features = ["server"] [[example]] name = "native_tls_self_signed_client" path = "examples/native_tls_self_signed_client.rs" required-features = [ "client", "native-tls", ] [[example]] name = "rustls_server" path = "examples/rustls_server.rs" required-features = ["server"] [[example]] name = "server" path = "examples/server.rs" required-features = ["server"] [[example]] name = "utf8_benchmark_client" path = "examples/utf8_benchmark_client.rs" required-features = ["client"] [[example]] name = "utf8_benchmark_server" path = "examples/utf8_benchmark_server.rs" required-features = ["server"] [[test]] name = "cancellation_safety" path = "tests/cancellation_safety.rs" [[test]] name = "client_is_send" path = "tests/client_is_send.rs" [[test]] name = "utf8_validation" path = "tests/utf8_validation.rs" [dependencies.aws-lc-rs] version = "1" features = ["aws-lc-sys"] optional = true default-features = false [dependencies.base64] version = "0.22" optional = true [dependencies.bytes] version = "1.7" [dependencies.fastrand] version = "2.0" features = ["std"] optional = true default-features = false [dependencies.futures-core] version = "0.3" [dependencies.futures-sink] version = "0.3" [dependencies.getrandom] version = "0.2" optional = true default-features = false [dependencies.http] version = "1" features = ["std"] optional = true default-features = false [dependencies.httparse] version = "1.6" optional = true [dependencies.openssl] version = "0.10" optional = true default-features = false [dependencies.rand] version = "0.8" features = [ "std", "std_rng", ] optional = true default-features = false [dependencies.ring] version = "0.17" optional = true default-features = false [dependencies.rustls-native-certs] version = "0.8" optional = true default-features = false [dependencies.rustls-pki-types] version = "1" optional = true [dependencies.rustls-platform-verifier] version = "0.3.1" optional = true [dependencies.sha1_smol] version = "1.0" optional = true [dependencies.simdutf8] version = "0.1" features = [ "std", "aarch64_neon", ] optional = true default-features = false [dependencies.tokio] version = "1" [dependencies.tokio-native-tls] version = "0.3" optional = true [dependencies.tokio-rustls] version = "0.26" optional = true default-features = false [dependencies.tokio-util] version = "0.7.3" features = [ "codec", "io", ] [dependencies.webpki-roots] version = "0.26" optional = true default-features = false [dev-dependencies.futures-util] version = "0.3.14" features = ["sink"] default-features = false [dev-dependencies.rustls-pemfile] version = "2" [dev-dependencies.rustls-pki-types] version = "1" [dev-dependencies.tokio] version = "1" features = [ "net", "macros", "rt-multi-thread", ] default-features = false [dev-dependencies.tokio-rustls] version = "0.26" [features] aws-lc-rs = ["aws_lc_rs"] aws_lc_rs = [ "dep:aws-lc-rs", "tokio-rustls?/aws_lc_rs", ] client = [ "dep:base64", "dep:http", "dep:httparse", "tokio/net", "tokio/io-util", ] fips = [ "aws_lc_rs", "aws-lc-rs?/fips", "tokio-rustls?/fips", ] native-tls = ["dep:tokio-native-tls"] nightly = ["simdutf8?/aarch64_neon_prefetch"] ring = [ "dep:ring", "tokio-rustls?/ring", ] rustls-bring-your-own-connector = [ "dep:rustls-pki-types", "dep:tokio-rustls", ] rustls-native-roots = [ "dep:rustls-pki-types", "dep:tokio-rustls", "dep:rustls-native-certs", ] rustls-platform-verifier = [ "dep:rustls-pki-types", "dep:tokio-rustls", "dep:rustls-platform-verifier", ] rustls-tls12 = ["tokio-rustls?/tls12"] rustls-webpki-roots = [ "dep:rustls-pki-types", "dep:tokio-rustls", "dep:webpki-roots", ] server = [ "dep:base64", "dep:http", "dep:httparse", "tokio/io-util", ] simd = ["dep:simdutf8"]