Skip to content

fix(deps): bump atomic-time from 0.1.5 to 0.2.1#3308

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/atomic-time-0.2.1
Open

fix(deps): bump atomic-time from 0.1.5 to 0.2.1#3308
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/atomic-time-0.2.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 26, 2026

Bumps atomic-time from 0.1.5 to 0.2.1.

Changelog

Sourced from atomic-time's changelog.

0.2.1

BUG FIXES

  • decode_duration and decode_option_duration no longer panic on non-canonical input. Previously, decode_duration(u128::MAX) and decode_option_duration(u128::MAX) called Duration::new with out-of-range nanoseconds, which panicked when the carry overflowed the seconds field. The decoders now normalize the nanosecond count and saturate at Duration::MAX instead.
  • decode_instant_from_duration no longer panics on extreme Duration values. Decoding a Duration far exceeding the platform's Instant range (e.g. Duration::new(u64::MAX, 999_999_999)) caused instant_now + delta to overflow and panic — including through the serde Deserialize impls for AtomicInstant and AtomicOptionInstant, where a malformed JSON payload would crash the process. The function now uses Instant::checked_add / checked_sub and saturates at instant_now on overflow.
  • Thread-safety tests now use CAS (fetch_update) instead of non-atomic load+store, and assert exact final values. The previous tests could silently lose concurrent updates and still pass because their assertions were too loose.
  • Integration test suite now actually runs. The six binaries under integration/src/bin/ had fn main() with assertions but no #[test] functions, so cargo test reported 0 tests. Each binary now has a #[cfg(test)] module that wraps the logic, yielding 6 real test results.

PERFORMANCE

  • Added #[inline] to all hot-path wrapper methods (new, load, store, swap, compare_exchange, compare_exchange_weak, fetch_update) and the public encode_* / decode_* helpers across all six atomic types. This helps downstream non-LTO builds avoid call overhead on these tiny wrappers.

OTHER

  • Benchmark "contended write" group renamed to load_under_write_contention to accurately reflect what it measures (load latency on the main thread while background threads write, not write latency). A new contended_store group was added that benchmarks real store and swap latency under write contention. README tables updated with the corrected labels and fresh numbers.

0.2.0

BREAKING CHANGES

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [atomic-time](https://github.com/al8n/atomic-time) from 0.1.5 to 0.2.1.
- [Release notes](https://github.com/al8n/atomic-time/releases)
- [Changelog](https://github.com/al8n/atomic-time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/al8n/atomic-time/commits)

---
updated-dependencies:
- dependency-name: atomic-time
  dependency-version: 0.2.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests related to dependencies rust The issue or pull request is related to Rust code labels Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests related to dependencies rust The issue or pull request is related to Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants