33 releases (11 stable)

new 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

#3 in Memory management

Download history 519005/week @ 2023-12-07 501699/week @ 2023-12-14 283604/week @ 2023-12-21 315023/week @ 2023-12-28 516969/week @ 2024-01-04 496440/week @ 2024-01-11 513465/week @ 2024-01-18 562815/week @ 2024-01-25 545454/week @ 2024-02-01 508736/week @ 2024-02-08 498669/week @ 2024-02-15 540212/week @ 2024-02-22 586672/week @ 2024-02-29 586824/week @ 2024-03-07 605272/week @ 2024-03-14 505957/week @ 2024-03-21

2,383,488 downloads per month
Used in 1,865 crates (222 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