| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| .github/ | 06-Sep-2024 | - | 413 | 321 | ||
| benches/ | 06-Sep-2024 | - | 581 | 483 | ||
| src/ | 06-Sep-2024 | - | 4,733 | 2,071 | ||
| tests/ | 06-Sep-2024 | - | 437 | 367 | ||
| .cargo_vcs_info.json | D | 06-Sep-2024 | 94 | 6 | 6 | |
| .gitignore | D | 06-Sep-2024 | 38 | 6 | 5 | |
| Android.bp | D | 06-Sep-2024 | 428 | 14 | 12 | |
| CHANGELOG.md | D | 06-Sep-2024 | 6.4 KiB | 228 | 153 | |
| Cargo.toml | D | 06-Sep-2024 | 1.7 KiB | 91 | 71 | |
| Cargo.toml.orig | D | 06-Sep-2024 | 1.3 KiB | 57 | 47 | |
| LICENSE | D | 06-Sep-2024 | 11.6 KiB | 230 | 192 | |
| LICENSE-APACHE | D | 06-Sep-2024 | 11.6 KiB | 230 | 192 | |
| LICENSE-MIT | D | 06-Sep-2024 | 1 KiB | 26 | 22 | |
| METADATA | D | 06-Sep-2024 | 461 | 21 | 20 | |
| MODULE_LICENSE_APACHE2 | D | 06-Sep-2024 | 0 | |||
| MODULE_LICENSE_MIT | D | 06-Sep-2024 | 0 | |||
| OWNERS | D | 06-Sep-2024 | 45 | 2 | 1 | |
| README.md | D | 06-Sep-2024 | 1.6 KiB | 42 | 28 | |
| TODO | D | 06-Sep-2024 | 104 | 2 | 1 | |
| cargo_embargo.json | D | 06-Sep-2024 | 101 | 9 | 8 | |
| ci-check.sh | D | 06-Sep-2024 | 264 | 17 | 9 | |
| rustfmt.toml | D | 06-Sep-2024 | 0 |
README.md
1# ArcSwap 2 3[](https://github.com/vorner/arc-swap/actions) 4[](https://codecov.io/gh/vorner/arc-swap) 5[](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