Revision control

Copy as Markdown

Other Tools

# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2021"
rust-version = "1.60"
name = "once_cell"
version = "1.20.2"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
build = false
exclude = [
"*.png",
"*.svg",
"/Cargo.lock.msrv",
"rustfmt.toml",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Single assignment cells and lazy values."
documentation = "https://docs.rs/once_cell"
readme = "README.md"
keywords = [
"lazy",
"static",
]
categories = [
"rust-patterns",
"memory-management",
]
license = "MIT OR Apache-2.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[lib]
name = "once_cell"
path = "src/lib.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = ["std"]
[[example]]
name = "bench_acquire"
path = "examples/bench_acquire.rs"
required-features = ["std"]
[[example]]
name = "lazy_static"
path = "examples/lazy_static.rs"
required-features = ["std"]
[[example]]
name = "reentrant_init_deadlocks"
path = "examples/reentrant_init_deadlocks.rs"
required-features = ["std"]
[[example]]
name = "regex"
path = "examples/regex.rs"
required-features = ["std"]
[[example]]
name = "test_synchronization"
path = "examples/test_synchronization.rs"
required-features = ["std"]
[[test]]
name = "it"
path = "tests/it/main.rs"
[dependencies.critical-section]
version = "1.1.3"
optional = true
[dependencies.parking_lot_core]
version = "0.9.10"
optional = true
default-features = false
[dependencies.portable-atomic]
version = "1.8"
optional = true
default-features = false
[dev-dependencies.critical-section]
version = "1.1.3"
features = ["std"]
[dev-dependencies.regex]
version = "1.10.6"
[features]
alloc = ["race"]
atomic-polyfill = ["critical-section"]
critical-section = [
"dep:critical-section",
"portable-atomic",
]
default = ["std"]
parking_lot = ["dep:parking_lot_core"]
portable-atomic = ["dep:portable-atomic"]
race = []
std = ["alloc"]
unstable = []