$ arc-swap

v1.9.0

Atomically swappable Arc

Downloads: 190.1M
Recent: 35.1M
Versions: 45
Updated: March 21, 2026

Latest Update Summary

Crate

Name: arc-swap New version: 1.8.0 Release date: 2025-12-23T11:04:45.513505Z

Crate readme

Short description Provides something similar to what RwLock<Arc<T>> is or what Atomic<Arc<T>> would be if it existed, optimized for read-mostly write-seldom scenarios.

Long description ArcSwap is optimized for scenarios where reads are more frequent than writes, offering consistent performance characteristics akin to RwLock<Arc<T>> or a hypothetical Atomic<Arc<T>>. The crate supports any edition 2018 capable compiler.

Features • Optimized for read-mostly, write-seldom scenarios • Consistent performance characteristics

Code Examples

Linkshttps://docs.rs/arc-swap

https://docs.rs/arc-swap

Release info

Release version: N/A

Release description N/A

Code Examples N/A

Minor update: 1.8.2 → 1.9.0

$ DOWNLOADS TREND

135.6M190.1M

$ VERSION HISTORY

v1.9.0March 21, 2026
v1.8.2February 14, 2026
v1.8.1February 2, 2026
v1.8.0December 23, 2025
v1.7.1March 23, 2024

$ LINKS

$ INSTALL

cargo add arc-swap

Or add to Cargo.toml: arc-swap = "1.9.0"