7 releases (breaking)
| new 0.6.1 | Feb 4, 2026 |
|---|---|
| 0.6.0 | Nov 12, 2025 |
| 0.5.0 | Nov 3, 2025 |
| 0.4.0 | Oct 21, 2025 |
| 0.1.0 | May 19, 2025 |
#791 in Asynchronous
47,687 downloads per month
Used in 140 crates
(4 directly)
53KB
976 lines
n0-watcher
Watchable values.
A Watchable exists to keep track of a value which may change over time. It allows
observers to be notified of changes to the value. The aim is to always be aware of the
last value, not to observe every value change.
In that way, a Watchable is like a tokio::sync::broadcast::Sender, except that there's no risk
of the channel filling up, but instead you might miss items.
See the module documentation for more information.
Note to Maintainers: Creating a release
- Make sure to have
git-cliff,cargo-releaseandcargo-semver-checksinstalled. - Figure out whether this release is major/minor/patch by running
cargo semver-checks check-release --release-type=major/minor/patchand see which one fits - Use
git-cliffto generate the changelog - Bump the version by major/minor/patch in
Cargo.tomland create a release prep PR. Make sure to prefix the release prep PR name withchore(release):. - Review and merge the PR.
- Run
cargo releaseto check if the release would go through well. - Run
cargo release --executeto run the release
License
Copyright 2025 N0, INC.
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~4.5–9MB
~138K SLoC