-
Notifications
You must be signed in to change notification settings - Fork 109
/
Cargo.toml
92 lines (70 loc) · 2.36 KB
/
Cargo.toml
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
[package]
name = "once_cell"
version = "1.20.2"
authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.60"
description = "Single assignment cells and lazy values."
readme = "README.md"
documentation = "https://docs.rs/once_cell"
repository = "https://github.com/matklad/once_cell"
keywords = ["lazy", "static"]
categories = ["rust-patterns", "memory-management"]
exclude = ["*.png", "*.svg", "/Cargo.lock.msrv", "rustfmt.toml"]
[workspace]
members = ["xtask"]
[dependencies]
parking_lot_core = { version = "0.9.10", optional = true, default-features = false }
portable-atomic = { version = "1.8", optional = true, default-features = false }
critical-section = { version = "1.1.3", optional = true }
[dev-dependencies]
regex = "1.10.6"
critical-section = { version = "1.1.3", features = ["std"] }
[features]
default = ["std"]
# Enables `once_cell::sync` module.
std = ["alloc"]
# Enables `once_cell::race::OnceBox` type.
alloc = ["race"]
# Enables `once_cell::race` module.
race = []
# Uses parking_lot to implement once_cell::sync::OnceCell.
# This makes no speed difference, but makes each OnceCell<T>
# up to 16 bytes smaller, depending on the size of the T.
parking_lot = ["dep:parking_lot_core"]
# Uses `portable-atomic` to implement `race` module. in
# `#![no_std]` mode. Please read `portable-atomic` docs carefully
# before enabling this feature.
portable-atomic = ["dep:portable-atomic"]
# Uses `critical-section` to implement `sync` module. in
# `#![no_std]` mode. Please read `critical-section` docs carefully
# before enabling this feature.
# `portable-atomic` feature is enabled for backwards compatibility.
critical-section = ["dep:critical-section", "portable-atomic"]
# Enables semver-exempt APIs of this crate.
# At the moment, this feature is unused.
unstable = []
# Only for backwards compatibility.
atomic-polyfill = ["critical-section"]
[[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"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]