• Home
Name Date Size #Lines LOC

..--

.github/06-Sep-2024-413321

benches/06-Sep-2024-581483

src/06-Sep-2024-4,7332,071

tests/06-Sep-2024-437367

.cargo_vcs_info.jsonD06-Sep-202494 66

.gitignoreD06-Sep-202438 65

Android.bpD06-Sep-2024428 1412

CHANGELOG.mdD06-Sep-20246.4 KiB228153

Cargo.tomlD06-Sep-20241.7 KiB9171

Cargo.toml.origD06-Sep-20241.3 KiB5747

LICENSED06-Sep-202411.6 KiB230192

LICENSE-APACHED06-Sep-202411.6 KiB230192

LICENSE-MITD06-Sep-20241 KiB2622

METADATAD06-Sep-2024461 2120

MODULE_LICENSE_APACHE2D06-Sep-20240

MODULE_LICENSE_MITD06-Sep-20240

OWNERSD06-Sep-202445 21

README.mdD06-Sep-20241.6 KiB4228

TODOD06-Sep-2024104 21

cargo_embargo.jsonD06-Sep-2024101 98

ci-check.shD06-Sep-2024264 179

rustfmt.tomlD06-Sep-20240

README.md

1# ArcSwap
2
3[![Actions Status](https://github.com/vorner/arc-swap/workflows/test/badge.svg)](https://github.com/vorner/arc-swap/actions)
4[![codecov](https://codecov.io/gh/vorner/arc-swap/branch/master/graph/badge.svg?token=3KA3R2D9fV)](https://codecov.io/gh/vorner/arc-swap)
5[![docs](https://docs.rs/arc-swap/badge.svg)](https://docs.rs/arc-swap)
6
7This provides something similar to what `RwLock<Arc<T>>` is or what
8`Atomic<Arc<T>>` would be if it existed, optimized for read-mostly write-seldom
9scenarios, with consistent performance characteristics.
10
11Read [the documentation](https://docs.rs/arc-swap) before using.
12
13## Rust version policy
14
15The 1. version will build on any edition 2018 capable compiler. This does not
16include:
17
18* Tests. Tests build and run on recent compilers, mostly because of
19  dependencies.
20* Additional feature flags. Most feature flags are guaranteed to build since the
21  version they are introduced. Experimental features are without any guarantees.
22
23## License
24
25Licensed under either of
26
27 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
28 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
29
30at your option.
31
32### Contribution
33
34Unless you explicitly state otherwise, any contribution intentionally
35submitted for inclusion in the work by you, as defined in the Apache-2.0
36license, shall be dual licensed as above, without any additional terms
37or conditions.
38
39[`Arc`]: https://doc.rust-lang.org/std/sync/struct.Arc.html
40[`AtomicPtr`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html
41[`ArcSwap`]: https://docs.rs/arc-swap/*/arc_swap/type.ArcSwap.html
42