33 releases (11 stable)

1.7.1 Mar 23, 2024
1.6.0 Dec 31, 2022
1.5.1 Jul 30, 2022
1.5.0 Nov 15, 2021
0.3.0 Jul 23, 2018

#2 in Memory management

Download history 808603/week @ 2024-08-22 760780/week @ 2024-08-29 854423/week @ 2024-09-05 821064/week @ 2024-09-12 834428/week @ 2024-09-19 866041/week @ 2024-09-26 876313/week @ 2024-10-03 873410/week @ 2024-10-10 922213/week @ 2024-10-17 908519/week @ 2024-10-24 852886/week @ 2024-10-31 966683/week @ 2024-11-07 1137524/week @ 2024-11-14 1043198/week @ 2024-11-21 803809/week @ 2024-11-28 785500/week @ 2024-12-05

3,978,210 downloads per month
Used in 2,419 crates (285 directly)

MIT/Apache

185KB
2K SLoC

ArcSwap

Actions Status codecov docs

This 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, with consistent performance characteristics.

Read the documentation before using.

Rust version policy

The 1. version will build on any edition 2018 capable compiler. This does not include:

  • Tests. Tests build and run on recent compilers, mostly because of dependencies.
  • Additional feature flags. Most feature flags are guaranteed to build since the version they are introduced. Experimental features are without any guarantees.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies