Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vorner/arc-swap
Support atomic operations on Arc itself
https://github.com/vorner/arc-swap
Last synced: 5 days ago
JSON representation
Support atomic operations on Arc itself
- Host: GitHub
- URL: https://github.com/vorner/arc-swap
- Owner: vorner
- License: apache-2.0
- Created: 2018-03-30T11:31:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T23:45:02.000Z (19 days ago)
- Last Synced: 2025-01-09T00:17:12.885Z (12 days ago)
- Language: Rust
- Size: 865 KB
- Stars: 846
- Watchers: 8
- Forks: 31
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ArcSwap
[![Actions Status](https://github.com/vorner/arc-swap/workflows/test/badge.svg)](https://github.com/vorner/arc-swap/actions)
[![codecov](https://codecov.io/gh/vorner/arc-swap/branch/master/graph/badge.svg?token=3KA3R2D9fV)](https://codecov.io/gh/vorner/arc-swap)
[![docs](https://docs.rs/arc-swap/badge.svg)](https://docs.rs/arc-swap)This provides something similar to what `RwLock>` is or what
`Atomic>` would be if it existed, optimized for read-mostly write-seldom
scenarios, with consistent performance characteristics.Read [the documentation](https://docs.rs/arc-swap) 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](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](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.[`Arc`]: https://doc.rust-lang.org/std/sync/struct.Arc.html
[`AtomicPtr`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html
[`ArcSwap`]: https://docs.rs/arc-swap/*/arc_swap/type.ArcSwap.html