# 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" rust-version = "1.66" name = "axum-server2" version = "0.7.3" authors = ["0x676e67 "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "High level server designed to be used with axum framework." readme = "README.md" keywords = [ "http", "https", "web", "server", ] categories = [ "asynchronous", "network-programming", "web-programming", ] license = "MIT" repository = "https://github.com/penumbra-x/axum-server2" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "axum_server2" path = "src/lib.rs" [[example]] name = "boringssl_server" path = "examples/boringssl_server.rs" doc-scrape-examples = true required-features = ["tls-boringssl"] [[example]] name = "from_std_listener" path = "examples/from_std_listener.rs" [[example]] name = "from_std_listener_rustls" path = "examples/from_std_listener_rustls.rs" doc-scrape-examples = true required-features = ["tls-rustls"] [[example]] name = "graceful_shutdown" path = "examples/graceful_shutdown.rs" [[example]] name = "hello_world" path = "examples/hello_world.rs" [[example]] name = "http_and_https" path = "examples/http_and_https.rs" doc-scrape-examples = true required-features = ["tls-rustls"] [[example]] name = "multiple_addresses" path = "examples/multiple_addresses.rs" [[example]] name = "remote_address" path = "examples/remote_address.rs" [[example]] name = "remote_address_using_tower" path = "examples/remote_address_using_tower.rs" [[example]] name = "rustls_reload" path = "examples/rustls_reload.rs" doc-scrape-examples = true required-features = ["tls-rustls"] [[example]] name = "rustls_server" path = "examples/rustls_server.rs" doc-scrape-examples = true required-features = ["tls-rustls"] [[example]] name = "rustls_session" path = "examples/rustls_session.rs" doc-scrape-examples = true required-features = ["tls-rustls"] [[example]] name = "shutdown" path = "examples/shutdown.rs" [dependencies.arc-swap] version = "1" optional = true [dependencies.boring] version = "4" optional = true package = "boring2" [dependencies.bytes] version = "1" [dependencies.http] version = "1.1" [dependencies.http-body] version = "1.0" [dependencies.hyper] version = "1.4" features = [ "http1", "http2", "server", ] [dependencies.hyper-util] version = "0.1.2" features = [ "server-auto", "service", "tokio", ] [dependencies.openssl] version = "0.10" optional = true [dependencies.pin-project-lite] version = "0.2" optional = true [dependencies.rustls] version = "0.23" optional = true default-features = false [dependencies.rustls-pemfile] version = "2.1" optional = true [dependencies.rustls-pki-types] version = "1.7" optional = true [dependencies.tokio] version = "1" features = [ "macros", "net", "sync", ] [dependencies.tokio-boring] version = "4" optional = true package = "tokio-boring2" [dependencies.tokio-openssl] version = "0.6" optional = true [dependencies.tokio-rustls] version = "0.26" optional = true default-features = false [dependencies.tower-service] version = "0.3" [dev-dependencies.axum] version = "0.7" [dev-dependencies.futures-util] version = "0.3" default-features = false [dev-dependencies.http-body-util] version = "0.1" [dev-dependencies.hyper] version = "1.4" features = ["full"] [dev-dependencies.serial_test] version = "3.1" [dev-dependencies.tokio] version = "1" features = ["full"] [dev-dependencies.tower] version = "0.5" features = ["util"] [dev-dependencies.tower-http] version = "0.5" features = ["add-extension"] [features] default = ["tls-boringssl"] tls-boringssl = [ "boring", "tokio-boring", "dep:pin-project-lite", ] tls-openssl = [ "arc-swap", "openssl", "tokio-openssl", "dep:pin-project-lite", ] tls-rustls = [ "tls-rustls-no-provider", "rustls/aws-lc-rs", ] tls-rustls-no-provider = [ "arc-swap", "rustls", "rustls-pemfile", "tokio/fs", "tokio/time", "tokio-rustls", "rustls-pki-types", "dep:pin-project-lite", ]