once_cell
Rust library for single assignment cells and lazy statics without macros
File Explorer
Download Latest Version (.zip)- ci.yaml
- icon.png
- logo.png
- bench.rs
- bench_acquire.rs
- lazy_static.rs
- reentrant_init_deadlocks.rs
- regex.rs
- test_synchronization.rs
- imp_cs.rs
- imp_pl.rs
- imp_std.rs
- lib.rs
- race.rs
- main.rs
- race.rs
- race_once_box.rs
- sync_lazy.rs
- sync_once_cell.rs
- unsync_lazy.rs
- unsync_once_cell.rs
- main.rs
- tidy.rs
- Cargo.toml
- .gitignore
- bors.toml
- Cargo.lock.msrv
- Cargo.toml
- CHANGELOG.md
- LICENSE-APACHE
- LICENSE-MIT
- logo.svg
- README.md
- rustfmt.toml
# Installation Guide
1. Get the code
git clone https://github.com/matklad/once_cell
Downloads the entire project code from GitHub to your computer.
cd once_cell
Moves into the project folder you just downloaded.
2. Rust
Medium RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
cargo build --release
Compiles the Rust project.
cargo run
Builds and then immediately runs the program.
If cargo build finishes without errors, it worked. The executable is created under target/.
// repository documentation
Was this content helpful?
(0 ratings)
