You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate legacy shutdown API in signals (prerequisite for torrust-tracker SI-18) #3
torrust-server-lib 0.4.0 shipped the legacy shutdown API in torrust_server_lib::signals without #[deprecated] and without release notes: Halted, shutdown_signal, shutdown_signal_with_message and global_shutdown_signal.
The torrust-tracker EPIC 1488 (Overhaul: Tracker Shutdown) needs these deprecated before it can deprecate (SI-18) and later remove (SI-19) its own use of them.
Plan
Source-level deprecation only: no behaviour change, nothing removed.
Add #[deprecated(since = "0.5.0", note = "...")] to the four symbols, naming the replacement and the planned removal in 0.6.0:
Halted -> inject a tokio_util::sync::CancellationToken
shutdown_signal, shutdown_signal_with_message -> cancellation_signal (plus a log line)
global_shutdown_signal -> executables, not libraries, subscribe to SIGINT/SIGTERM
Started and cancellation_signal stay.
Add a CHANGELOG.md entry with migration steps and the support window (kept through 0.5.x, removed in 0.6.0, a later breaking release).
Bump the version to 0.5.0. Publishing to crates.io is a separate maintainer action.
Activity
Merge #2752: docs(issues): [#2751] add specification to deprecate the…