# 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 = "axum-server" version = "0.7.1" authors = [ "Programatik ", "Adi Salimgereev ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "High level server designed to be used with axum framework." homepage = "https://github.com/programatik29/axum-server" readme = "README.md" keywords = [ "http", "https", "web", "server", ] categories = [ "asynchronous", "network-programming", "web-programming", ] license = "MIT" repository = "https://github.com/programatik29/axum-server" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "axum_server" path = "src/lib.rs" [[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.bytes] version = "1" [dependencies.futures-util] version = "0.3" features = ["alloc"] default-features = false [dependencies.http] version = "1.1" [dependencies.http-body] version = "1.0" [dependencies.http-body-util] version = "0.1" [dependencies.hyper] version = "1.4" features = [ "http1", "http2", "server", ] [dependencies.hyper-util] version = "0.1.2" features = [ "server-auto", "tokio", ] [dependencies.openssl] version = "0.10" optional = true [dependencies.pin-project-lite] version = "0.2" [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-openssl] version = "0.6" optional = true [dependencies.tokio-rustls] version = "0.26" optional = true default-features = false [dependencies.tower] version = "0.4" features = ["util"] [dependencies.tower-service] version = "0.3" [dev-dependencies.axum] version = "0.7" [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.4" features = ["util"] [dev-dependencies.tower-http] version = "0.5" features = ["add-extension"] [features] default = [] tls-openssl = [ "arc-swap", "openssl", "tokio-openssl", ] 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", ]