28 releases (6 stable)

new 1.4.0 Sep 17, 2021
1.3.0 May 23, 2021
1.2.0 Jan 3, 2021
1.1.0 Dec 11, 2020
0.3.0 Jul 23, 2018

#4 in Data structures

Download history 79357/week @ 2021-06-01 80819/week @ 2021-06-08 86720/week @ 2021-06-15 84224/week @ 2021-06-22 82126/week @ 2021-06-29 86917/week @ 2021-07-06 87953/week @ 2021-07-13 87789/week @ 2021-07-20 95655/week @ 2021-07-27 92289/week @ 2021-08-03 92777/week @ 2021-08-10 91888/week @ 2021-08-17 102391/week @ 2021-08-24 90602/week @ 2021-08-31 103052/week @ 2021-09-07 120032/week @ 2021-09-14

397,152 downloads per month
Used in 473 crates (68 directly)

Apache-2.0/MIT

170KB
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.

No runtime deps