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
3,978,210 downloads per month
Used in 2,419 crates
(285 directly)
185KB
2K
SLoC
ArcSwap
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.