# 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 = "2018" name = "tls-listener" version = "0.10.2" authors = ["Thayne McCombs "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "wrap incoming Stream of connections in TLS" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/tmccombs/tls-listener" [package.metadata.docs.rs] features = [ "rustls-core", "rustls", "rustls-aws-lc", "rustls-fips", "rustls-ring", "native-tls", "openssl", "rt", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "tls_listener" path = "src/lib.rs" [[example]] name = "echo" path = "examples/echo.rs" required-features = ["tokio-net"] [[example]] name = "echo-threads" path = "examples/echo-threads.rs" required-features = [ "tokio-net", "rt", "tokio/rt-multi-thread", ] [[example]] name = "http" path = "examples/http.rs" [[example]] name = "http-change-certificate" path = "examples/http-change-certificate.rs" [[example]] name = "http-stream" path = "examples/http-stream.rs" [[test]] name = "basic" path = "tests/basic.rs" [dependencies.futures-util] version = "0.3.8" [dependencies.openssl_impl] version = "0.10.32" optional = true package = "openssl" [dependencies.pin-project-lite] version = "0.2.13" [dependencies.thiserror] version = "1.0.30" [dependencies.tokio] version = "1.0" features = ["time"] [dependencies.tokio-native-tls] version = "0.3.0" optional = true [dependencies.tokio-openssl] version = "0.6.3" optional = true [dependencies.tokio-rustls] version = ">=0.25.0,<0.27" optional = true default-features = false [dev-dependencies.hyper] version = "1.0" features = [ "http1", "server", ] [dev-dependencies.hyper-util] version = "0.1.1" features = ["tokio"] [dev-dependencies.tokio] version = "1.0" features = [ "rt", "macros", "net", "io-util", "signal", ] [features] default = ["tokio-net"] native-tls = ["tokio-native-tls"] openssl = [ "tokio-openssl", "openssl_impl", ] rt = ["tokio/rt"] rustls = [ "rustls-aws-lc", "tokio-rustls/default", ] rustls-aws-lc = [ "rustls-core", "tokio-rustls/aws-lc-rs", ] rustls-core = ["tokio-rustls"] rustls-fips = [ "rustls-aws-lc", "tokio-rustls/fips", ] rustls-ring = [ "rustls-core", "tokio-rustls/ring", ] tokio-net = ["tokio/net"]