# 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" rust-version = "1.70" name = "tokio-graceful-shutdown" version = "0.15.2" authors = ["Finomnis "] build = false exclude = [ "/.gitignore", "/.github/", "/TODO.txt", "/UPCOMING_VERSION_CHANGES.txt", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Utilities to perform a graceful shutdown on a Tokio based service." readme = "README.md" keywords = [ "tokio", "shutdown", ] categories = ["asynchronous"] license = "MIT OR Apache-2.0" repository = "https://github.com/Finomnis/tokio-graceful-shutdown" [profile.dev] opt-level = 1 [lib] name = "tokio_graceful_shutdown" path = "src/lib.rs" [[example]] name = "01_normal_shutdown" path = "examples/01_normal_shutdown.rs" [[example]] name = "02_structs" path = "examples/02_structs.rs" [[example]] name = "03_shutdown_timeout" path = "examples/03_shutdown_timeout.rs" [[example]] name = "04_subsystem_finished" path = "examples/04_subsystem_finished.rs" [[example]] name = "05_subsystem_finished_with_error" path = "examples/05_subsystem_finished_with_error.rs" [[example]] name = "06_nested_subsystems" path = "examples/06_nested_subsystems.rs" [[example]] name = "07_nested_error" path = "examples/07_nested_error.rs" [[example]] name = "08_panic_handling" path = "examples/08_panic_handling.rs" [[example]] name = "09_task_cancellation" path = "examples/09_task_cancellation.rs" [[example]] name = "10_request_shutdown" path = "examples/10_request_shutdown.rs" [[example]] name = "11_double_panic" path = "examples/11_double_panic.rs" [[example]] name = "12_subsystem_auto_restart" path = "examples/12_subsystem_auto_restart.rs" [[example]] name = "13_partial_shutdown" path = "examples/13_partial_shutdown.rs" [[example]] name = "14_partial_shutdown_error" path = "examples/14_partial_shutdown_error.rs" [[example]] name = "15_without_miette" path = "examples/15_without_miette.rs" [[example]] name = "16_with_anyhow" path = "examples/16_with_anyhow.rs" [[example]] name = "17_with_eyre" path = "examples/17_with_eyre.rs" [[example]] name = "18_error_type_passthrough" path = "examples/18_error_type_passthrough.rs" [[example]] name = "19_sequential_shutdown" path = "examples/19_sequential_shutdown.rs" [[example]] name = "20_orchestrated_shutdown_order" path = "examples/20_orchestrated_shutdown_order.rs" [[example]] name = "hyper" path = "examples/hyper.rs" [[example]] name = "tokio_console" path = "examples/tokio_console.rs" required-features = ["tracing"] [[example]] name = "warp" path = "examples/warp.rs" [[test]] name = "cancel_on_shutdown" path = "tests/cancel_on_shutdown.rs" [[test]] name = "integration_test" path = "tests/integration_test.rs" [[test]] name = "integration_test_2" path = "tests/integration_test_2.rs" [dependencies.async-trait] version = "0.1.73" [dependencies.atomic] version = "0.6.0" [dependencies.bytemuck] version = "1.14.0" features = ["derive"] [dependencies.miette] version = "7.0.0" [dependencies.pin-project-lite] version = "0.2.13" [dependencies.thiserror] version = "2.0.3" [dependencies.tokio] version = "1.32.0" features = [ "signal", "rt", "macros", "time", ] default-features = false [dependencies.tokio-util] version = "0.7.10" default-features = false [dependencies.tracing] version = "0.1.37" default-features = false [dev-dependencies.anyhow] version = "1.0.75" [dev-dependencies.bytes] version = "1.5.0" [dev-dependencies.console-subscriber] version = "0.2.0" [dev-dependencies.eyre] version = "0.6.12" [dev-dependencies.futures-util] version = ">= 0.3.16" [dev-dependencies.gcc] version = ">= 0.3.4" [dev-dependencies.headers] version = ">= 0.3.5" [dev-dependencies.http-body-util] version = "0.1.0" [dev-dependencies.hyper] version = "1.0.1" features = [ "server", "http1", ] [dev-dependencies.hyper-util] version = "0.1.1" features = ["tokio"] [dev-dependencies.miette] version = "7.2.0" features = ["fancy"] [dev-dependencies.serde_urlencoded] version = ">= 0.7.1" [dev-dependencies.tokio] version = "1.32.0" features = ["full"] [dev-dependencies.tokio-util] version = "0.7.10" features = ["rt"] default-features = false [dev-dependencies.tower] version = ">= 0.4.1" [dev-dependencies.tracing-subscriber] version = "0.3.17" [dev-dependencies.tracing-test] version = "0.2.4" features = ["no-env-filter"] [dev-dependencies.unicode-linebreak] version = ">= 0.1.5" [dev-dependencies.warp] version = "0.3.6" [features] tracing = ["tokio/tracing"] [target."cfg(unix)".dev-dependencies.nix] version = "0.29.0" features = ["signal"] default-features = false [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(tokio_unstable)"]