Debian Codegraph @

.cargo/vendor/once_cell/Cargo.toml.orig

raw
1 [package]
2 name = "once_cell"
3 version = "1.19.0"
4 authors = ["Aleksey Kladov <[email protected]>"]
5 license = "MIT OR Apache-2.0"
6 edition = "2021"
7 rust-version = "1.60"
8
9 description = "Single assignment cells and lazy values."
10 readme = "README.md"
11 documentation = "https://docs.rs/once_cell"
12
13 repository = "https://github.com/matklad/once_cell"
14 keywords = ["lazy", "static"]
15 categories = ["rust-patterns", "memory-management"]
16
17 exclude = ["*.png", "*.svg", "/Cargo.lock.msrv", "rustfmt.toml"]
18
19 [workspace]
20 members = ["xtask"]
21
22 [dependencies]
23 parking_lot_core = { version = "0.9.3", optional = true, default_features = false }
24 portable-atomic = { version = "1", optional = true }
25 critical-section = { version = "1", optional = true }
26
27 [dev-dependencies]
28 regex = "1.2.0"
29 critical-section = { version = "1.1.1", features = ["std"] }
30
31 [features]
32 default = ["std"]
33
34 # Enables `once_cell::sync` module.
35 std = ["alloc"]
36
37 # Enables `once_cell::race::OnceBox` type.
38 alloc = ["race"]
39
40 # Enables `once_cell::race` module.
41 race = []
42
43 # Uses parking_lot to implement once_cell::sync::OnceCell.
44 # This makes no speed difference, but makes each OnceCell<T>
45 # up to 16 bytes smaller, depending on the size of the T.
46 parking_lot = ["dep:parking_lot_core"]
47
48 # Uses `critical-section` to implement `sync` and `race` modules. in
49 # `#![no_std]` mode. Please read `critical-section` docs carefully
50 # before enabling this feature.
51 critical-section = ["dep:critical-section", "portable-atomic" ]
52
53 # Enables semver-exempt APIs of this crate.
54 # At the moment, this feature is unused.
55 unstable = []
56
57 # Only for backwards compatibility.
58 atomic-polyfill = ["critical-section"]
59
60 [[example]]
61 name = "bench"
62 required-features = ["std"]
63
64 [[example]]
65 name = "bench_acquire"
66 required-features = ["std"]
67
68 [[example]]
69 name = "lazy_static"
70 required-features = ["std"]
71
72 [[example]]
73 name = "reentrant_init_deadlocks"
74 required-features = ["std"]
75
76 [[example]]
77 name = "regex"
78 required-features = ["std"]
79
80 [[example]]
81 name = "test_synchronization"
82 required-features = ["std"]
83
84 [package.metadata.docs.rs]
85 all-features = true
86 rustdoc-args = ["--generate-link-to-definition"]