Skip to content

Commit

Permalink
Merge pull request #92 from Finomnis/bump_version
Browse files Browse the repository at this point in the history
Bump version to 0.15.2; upgrade thiserror to 2.x
  • Loading branch information
Finomnis authored Nov 24, 2024
2 parents e3cee38 + 42ada12 commit d32e5d6
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tokio-graceful-shutdown"
authors = ["Finomnis <[email protected]>"]
version = "0.15.1"
version = "0.15.2"
edition = "2021"
rust-version = "1.70"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -41,7 +41,7 @@ tokio = { version = "1.32.0", default-features = false, features = [
tokio-util = { version = "0.7.10", default-features = false }

pin-project-lite = "0.2.13"
thiserror = "1.0.49"
thiserror = "2.0.3"
miette = "7.0.0"
async-trait = "0.1.73"
atomic = "0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/01_normal_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/02_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl IntoSubsystem<miette::Report> for Subsystem2 {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

let subsys1 = Subsystem1 { arg: 42 };
Expand Down
2 changes: 1 addition & 1 deletion examples/03_shutdown_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/04_subsystem_finished.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/05_subsystem_finished_with_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/06_nested_subsystems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/07_nested_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn subsys2(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/08_panic_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn subsys2(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/09_task_cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl CountdownSubsystem {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/10_request_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl CountdownSubsystem {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/11_double_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn subsys3(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/12_subsystem_auto_restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn subsys1_keepalive(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/13_partial_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/14_partial_shutdown_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/15_without_miette.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<(), MyError> {
async fn main() -> Result<(), Box<dyn Error>> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/16_with_anyhow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/17_with_eyre.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/18_error_type_passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl IntoSubsystem<MyError, MyError> for Subsys6 {
async fn main() -> Result<(), miette::Report> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/19_sequential_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async fn root(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/20_orchestrated_shutdown_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn parent(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async fn hyper_subsystem(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn warp_subsystem(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down

0 comments on commit d32e5d6

Please sign in to comment.