• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2021"
14rust-version = "1.65"
15name = "once_cell"
16version = "1.21.1"
17authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
18build = false
19exclude = [
20    "*.png",
21    "*.svg",
22    "/Cargo.lock.msrv",
23    "rustfmt.toml",
24]
25autolib = false
26autobins = false
27autoexamples = false
28autotests = false
29autobenches = false
30description = "Single assignment cells and lazy values."
31documentation = "https://docs.rs/once_cell"
32readme = "README.md"
33keywords = [
34    "lazy",
35    "static",
36]
37categories = [
38    "rust-patterns",
39    "memory-management",
40]
41license = "MIT OR Apache-2.0"
42repository = "https://github.com/matklad/once_cell"
43
44[package.metadata.docs.rs]
45all-features = true
46rustdoc-args = ["--generate-link-to-definition"]
47
48[features]
49alloc = ["race"]
50atomic-polyfill = ["critical-section"]
51critical-section = [
52    "dep:critical-section",
53    "portable-atomic",
54]
55default = ["std"]
56parking_lot = ["dep:parking_lot_core"]
57portable-atomic = ["dep:portable-atomic"]
58race = []
59std = ["alloc"]
60unstable = []
61
62[lib]
63name = "once_cell"
64path = "src/lib.rs"
65
66[[example]]
67name = "bench"
68path = "examples/bench.rs"
69required-features = ["std"]
70
71[[example]]
72name = "bench_acquire"
73path = "examples/bench_acquire.rs"
74required-features = ["std"]
75
76[[example]]
77name = "lazy_static"
78path = "examples/lazy_static.rs"
79required-features = ["std"]
80
81[[example]]
82name = "reentrant_init_deadlocks"
83path = "examples/reentrant_init_deadlocks.rs"
84required-features = ["std"]
85
86[[example]]
87name = "regex"
88path = "examples/regex.rs"
89required-features = ["std"]
90
91[[example]]
92name = "test_synchronization"
93path = "examples/test_synchronization.rs"
94required-features = ["std"]
95
96[[test]]
97name = "it"
98path = "tests/it/main.rs"
99
100[dependencies.critical-section]
101version = "1.1.3"
102optional = true
103
104[dependencies.parking_lot_core]
105version = "0.9.10"
106optional = true
107default-features = false
108
109[dependencies.portable-atomic]
110version = "1.8"
111optional = true
112default-features = false
113
114[dev-dependencies.critical-section]
115version = "1.1.3"
116features = ["std"]
117
118[dev-dependencies.regex]
119version = "1.10.6"
120