Debian Codegraph @

debian/rust-vendor/once_cell/Cargo.toml

raw
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]
13 edition = "2021"
14 rust-version = "1.65"
15 name = "once_cell"
16 version = "1.21.4"
17 authors = ["Aleksey Kladov <[email protected]>"]
18 build = false
19 exclude = [
20 "*.png",
21 "*.svg",
22 "/Cargo.lock.msrv",
23 "rustfmt.toml",
24 ]
25 autolib = false
26 autobins = false
27 autoexamples = false
28 autotests = false
29 autobenches = false
30 description = "Single assignment cells and lazy values."
31 documentation = "https://docs.rs/once_cell"
32 readme = "README.md"
33 keywords = [
34 "lazy",
35 "static",
36 ]
37 categories = [
38 "rust-patterns",
39 "memory-management",
40 ]
41 license = "MIT OR Apache-2.0"
42 repository = "https://github.com/matklad/once_cell"
43
44 [package.metadata.docs.rs]
45 all-features = true
46 rustdoc-args = ["--generate-link-to-definition"]
47
48 [features]
49 alloc = ["race"]
50 atomic-polyfill = ["critical-section"]
51 critical-section = [
52 "dep:critical-section",
53 "portable-atomic",
54 ]
55 default = ["std"]
56 parking_lot = ["dep:parking_lot_core"]
57 portable-atomic = ["dep:portable-atomic"]
58 race = []
59 std = ["alloc"]
60 unstable = []
61
62 [lib]
63 name = "once_cell"
64 path = "src/lib.rs"
65
66 [[example]]
67 name = "bench"
68 path = "examples/bench.rs"
69 required-features = ["std"]
70
71 [[example]]
72 name = "bench_acquire"
73 path = "examples/bench_acquire.rs"
74 required-features = ["std"]
75
76 [[example]]
77 name = "lazy_static"
78 path = "examples/lazy_static.rs"
79 required-features = ["std"]
80
81 [[example]]
82 name = "reentrant_init_deadlocks"
83 path = "examples/reentrant_init_deadlocks.rs"
84 required-features = ["std"]
85
86 [[example]]
87 name = "regex"
88 path = "examples/regex.rs"
89 required-features = ["std"]
90
91 [[example]]
92 name = "test_synchronization"
93 path = "examples/test_synchronization.rs"
94 required-features = ["std"]
95
96 [[test]]
97 name = "it"
98 path = "tests/it/main.rs"
99
100 [dependencies.critical-section]
101 version = "1.1.3"
102 optional = true
103
104 [dependencies.parking_lot_core]
105 version = "0.9.10"
106 optional = true
107 default-features = false
108
109 [dependencies.portable-atomic]
110 version = "1.8"
111 optional = true
112 default-features = false
113
114 [dev-dependencies.critical-section]
115 version = "1.1.3"
116 features = ["std"]
117
118 [dev-dependencies.regex]
119 version = "1.10.6"