Add graceful shutdown.

This commit is contained in:
Tom Alexander
2024-07-14 19:01:10 -04:00
parent 2c0a7958a7
commit 41cc65e7d3
3 changed files with 39 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ axum = { version = "0.7.5", default-features = false, features = ["tokio", "http
serde = { version = "1.0.204", features = ["derive"] }
# default std
serde_json = { version = "1.0.120", default-features = false, features = ["std"] }
tokio = { version = "1.38.0", default-features = false, features = ["macros", "process", "rt", "rt-multi-thread"] }
tower-http = { version = "0.5.2", default-features = false, features = ["trace"] }
tokio = { version = "1.38.0", default-features = false, features = ["macros", "process", "rt", "rt-multi-thread", "signal"] }
tower-http = { version = "0.5.2", default-features = false, features = ["trace", "timeout"] }
# default attributes, std, tracing-attributes
tracing = { version = "0.1.40", default-features = false, features = ["attributes", "std", "tracing-attributes", "async-await"] }
# default alloc, ansi, fmt, nu-ansi-term, registry, sharded-slab, smallvec, std, thread_local, tracing-log