# 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.1" authors = ["Thayne McCombs "] 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", "native-tls", "openssl", "rt", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "http" path = "examples/http.rs" [[example]] name = "http-stream" path = "examples/http-stream.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-change-certificate" path = "examples/http-change-certificate.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 [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 = ["tokio-rustls"] tokio-net = ["tokio/net"]