Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full rewrite #64

Merged
merged 27 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b2fc26c
Migrate from https://github.com/Finomnis/tokio-graceful-shutdown-rewrite
Finomnis Oct 12, 2023
73c92b3
Fix clippy lint; add licenses
Finomnis Oct 12, 2023
a0fead6
Update Cargo.toml; introduce MSRV
Finomnis Oct 12, 2023
3910aaa
Update README
Finomnis Oct 12, 2023
90be21d
Attempt to fix CI
Finomnis Oct 12, 2023
9104d11
Attempt to fix MSRV and docs
Finomnis Oct 12, 2023
54a0a16
Beautification
Finomnis Oct 12, 2023
768cb45
Bump MSRV to 1.72, because of mpsc::Sender's Sync impl
Finomnis Oct 12, 2023
e35490f
Replace std::mpsc with tokio::mpsc to reduce MSRV down to 1.63
Finomnis Oct 13, 2023
bc02f02
Attempt to fix doc tests
Finomnis Oct 13, 2023
e78b117
Attempt to fix ASAN error
Finomnis Oct 13, 2023
4403b14
Fix security audit
Finomnis Oct 13, 2023
1010d07
Add documentation
Finomnis Oct 13, 2023
4baaf7f
Fix doc tests
Finomnis Oct 13, 2023
8836224
Fix race condition in error collection; add another warning for dropp…
Finomnis Oct 13, 2023
1aa7772
Remove obsolete runner tests
Finomnis Oct 18, 2023
ecc1695
Add integration tests
Finomnis Oct 18, 2023
d654c2f
Add cancel_on_shutdown test
Finomnis Oct 18, 2023
838c9c4
Fix unix signal test
Finomnis Oct 18, 2023
6204777
Fix warning
Finomnis Oct 18, 2023
26ef280
Attempt to fix error_action converage
Finomnis Oct 18, 2023
9e65603
Another attempt to fix error_action coverage
Finomnis Oct 18, 2023
0c5e380
Remove nested_toplevel tests
Finomnis Oct 19, 2023
36f802a
Remove temprorary notes
Finomnis Oct 19, 2023
286d339
Re-add TODO.txt file
Finomnis Oct 19, 2023
2248ee8
Fix comment
Finomnis Oct 19, 2023
cfbc130
Fix docs
Finomnis Oct 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 16 additions & 34 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,58 +1,40 @@
[package]
name = "tokio-graceful-shutdown"
authors = ["Finomnis <[email protected]>"]
version = "0.13.0"
edition = "2018"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/Finomnis/tokio-graceful-shutdown"
description = "Utilities to perform a graceful shutdown on a Tokio based service."
keywords = ["tokio", "shutdown"]
categories = ["asynchronous"]
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

exclude = [
"/.gitignore",
"/.github/",
"/TODO.txt",
"/UPCOMING_VERSION_CHANGES.txt",
]

[dependencies]
# Error definitions
thiserror = "1.0.32"
miette = "5.3.0"
tracing = { version = "0.1.37", default-features = false }

# For async utilities
tokio = { version = "1.20.1", default-features = false, features = [
tokio = { version = "1.32.0", default-features = false, features = [
"signal",
"rt",
"macros",
"time",
] }
tokio-util = { version = "0.7.2", default-features = false }
futures = "0.3.23"
async-recursion = "1.0.0"
pin-project-lite = "0.2.9"

# For 'IntoSubsystem' trait
async-trait = "0.1.57"
tokio-util = { version = "0.7.8", default-features = false }

# For logging
log = "0.4.17"
pin-project-lite = "0.2.13"
thiserror = "1.0.49"
miette = "5.10.0"
async-trait = "0.1.73"
atomic = "0.6.0"
bytemuck = { version = "1.14.0", features = ["derive"] }

[dev-dependencies]
# Error propagation
anyhow = "1.0.61"
anyhow = "1.0.75"
eyre = "0.6.8"
miette = { version = "5.3.0", features = ["fancy"] }
miette = { version = "5.10.0", features = ["fancy"] }

# Logging
env_logger = "0.10.0"
tracing-subscriber = "0.3.17"
tracing-test = "0.2.4"

# Tokio
tokio = { version = "1.20.1", features = ["full"] }
tokio = { version = "1.32.0", features = ["full"] }

# Hyper example
hyper = { version = "0.14.20", features = ["full"] }
Expand Down
201 changes: 0 additions & 201 deletions LICENSE-APACHE

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE-MIT

This file was deleted.

Loading
Loading