blob: b3a6ba60b24f557734def5e53c32bb017a1b0d5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# 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.18.0"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
exclude = [
"*.png",
"*.svg",
"/Cargo.lock.msrv",
"rustfmt.toml",
]
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"
repository = "https://github.com/matklad/once_cell"
[package.metadata.docs.rs]
all-features = true
[[example]]
name = "bench"
required-features = ["std"]
[[example]]
name = "bench_acquire"
required-features = ["std"]
[[example]]
name = "lazy_static"
required-features = ["std"]
[[example]]
name = "reentrant_init_deadlocks"
required-features = ["std"]
[[example]]
name = "regex"
required-features = ["std"]
[[example]]
name = "test_synchronization"
required-features = ["std"]
[dependencies.atomic-polyfill]
version = "1"
optional = true
[dependencies.critical-section]
version = "1"
optional = true
[dependencies.parking_lot_core]
version = "0.9.3"
optional = true
default_features = false
[dev-dependencies.critical-section]
version = "1.1.1"
features = ["std"]
[dev-dependencies.regex]
version = "1.2.0"
[features]
alloc = ["race"]
atomic-polyfill = ["critical-section"]
critical-section = [
"dep:critical-section",
"dep:atomic-polyfill",
]
default = ["std"]
parking_lot = ["dep:parking_lot_core"]
race = []
std = ["alloc"]
unstable = []
|