# 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 = "tokio-listener" version = "0.4.3" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Add flexibility in a way of accepting connections: unix sockets, socket activation, inetd mode to Tokio-based projects." readme = "README.md" keywords = [ "tokio", "unix", "systemd", "socket-activation", "clap", ] categories = [ "network-programming", "command-line-interface", ] license = "MIT OR Apache-2.0" repository = "https://github.com/vi/tokio-listener" [package.metadata."docs.rs"] all-features = true rustdoc-args = [ "--cfg", "docsrs_alt", ] [lib] name = "tokio_listener" path = "src/lib.rs" [[example]] name = "serde_echo" path = "examples/serde_echo.rs" required-features = [ "serde", "sd_listen", ] [[example]] name = "clap_axum06" path = "examples/clap_axum06.rs" required-features = [ "clap", "hyper014", ] [[example]] name = "clap_axum07" path = "examples/clap_axum07.rs" required-features = [ "clap", "axum07", ] [[example]] name = "clap_axum07_advanced" path = "examples/clap_axum07_advanced.rs" required-features = [ "clap", "axum07", ] [[example]] name = "argh_hyper014" path = "examples/argh_hyper014.rs" required-features = [ "hyper014", "user_facing_default", ] [[example]] name = "tonic" path = "examples/tonic.rs" required-features = ["tonic012"] [dependencies.axum07] version = "0.7" optional = true package = "axum" [dependencies.clap] version = "4.3.11" features = [ "derive", "std", ] optional = true default-features = false [dependencies.document-features] version = "0.2.7" [dependencies.futures-core] version = "0.3.28" [dependencies.futures-util] version = "0.3" optional = true [dependencies.hyper-util] version = "0.1" features = [ "server", "server-auto", ] optional = true [dependencies.hyper014] version = "0.14.27" features = ["server"] optional = true package = "hyper" [dependencies.hyper1] version = "1" features = ["server"] optional = true package = "hyper" [dependencies.pin-project] version = "1.1.2" [dependencies.serde] version = "1.0.171" features = ["derive"] optional = true [dependencies.serde_with] version = "3.0.0" optional = true [dependencies.socket2] version = "0.5.3" features = ["all"] optional = true [dependencies.tokio] version = "1.29.1" features = [ "net", "io-std", "time", "sync", ] [dependencies.tokio-util] version = "0.7" features = [ "net", "codec", ] optional = true [dependencies.tonic_010] version = "0.10.2" optional = true package = "tonic" [dependencies.tonic_011] version = "0.11.0" optional = true package = "tonic" [dependencies.tonic_012] version = "0.12.0" optional = true package = "tonic" [dependencies.tower] version = "0.4" features = ["util"] optional = true [dependencies.tower-service] version = "0.3" optional = true [dependencies.tracing] version = "0.1.37" [dev-dependencies.anyhow] version = "1.0.71" [dev-dependencies.argh] version = "0.1.10" [dev-dependencies.axum06] version = "0.6.18" package = "axum" [dev-dependencies.clap] version = "4.3.11" features = ["help"] [dev-dependencies.hyper014] version = "0.14.27" features = [ "server", "http1", ] package = "hyper" [dev-dependencies.tokio] version = "1.29.1" features = [ "macros", "rt", "io-util", ] [dev-dependencies.tokio-test] version = "0.4.2" [dev-dependencies.toml] version = "0.7.6" [dev-dependencies.tonic-health] version = "0.12.0" [dev-dependencies.tracing-subscriber] version = "0.3.17" [features] axum07 = [ "dep:hyper1", "dep:hyper-util", "dep:futures-util", "dep:tower-service", "dep:tower", "dep:axum07", ] default = [ "user_facing_default", "tokio-util", ] hyper014 = ["dep:hyper014"] inetd = ["dep:futures-util"] multi-listener = ["dep:futures-util"] sd_listen = ["socket2"] serde = [ "dep:serde", "serde_with", ] socket_options = ["socket2"] tokio-util = ["dep:tokio-util"] tonic010 = ["dep:tonic_010"] tonic011 = ["dep:tonic_011"] tonic012 = ["dep:tonic_012"] unix = [] unix_path_tools = ["nix"] user_facing_default = [ "inetd", "unix", "unix_path_tools", "sd_listen", "socket_options", ] [target."cfg(unix)".dependencies.nix] version = "0.26.2" features = [ "user", "fs", ] optional = true default-features = false