29 releases (1 stable)

1.0.0 Nov 15, 2020
0.4.7 Jun 6, 2020
0.4.5 Mar 18, 2020
0.4.4 Nov 17, 2019
0.3.0 Jul 23, 2018

#4 in Data structures

Download history 117300/week @ 2020-08-13 119205/week @ 2020-08-20 117440/week @ 2020-08-27 116462/week @ 2020-09-03 133536/week @ 2020-09-10 132081/week @ 2020-09-17 137274/week @ 2020-09-24 141901/week @ 2020-10-01 148760/week @ 2020-10-08 146046/week @ 2020-10-15 152747/week @ 2020-10-22 122933/week @ 2020-10-29 96406/week @ 2020-11-05 97022/week @ 2020-11-12 99072/week @ 2020-11-19 78383/week @ 2020-11-26

550,729 downloads per month
Used in 357 crates (42 directly)

Apache-2.0/MIT

150KB
1.5K SLoC

ArcSwap

Travis Build Status AppVeyor Build status

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