Add uniitest
[platform/upstream/rust-once_cell.git] / Cargo.toml.orig
1 [package]
2 name = "once_cell"
3 version = "1.17.1"
4 authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
5 license = "MIT OR Apache-2.0"
6 edition = "2021"
7 rust-version = "1.56"
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 # These optional dependencies are considered private impl details,
24 # only features from `[features]` table are a part of semver-guarded API.
25 parking_lot_core = { version = "0.9.3", optional = true, default_features = false }
26 atomic_polyfill = { package = "atomic-polyfill", version = "1", optional = true }
27 critical_section = { package = "critical-section", version = "1", optional = true }
28
29 [dev-dependencies]
30 lazy_static = "1.0.0"
31 crossbeam-utils = "0.8.7"
32 regex =  "1.2.0"
33 critical_section = { package = "critical-section", version = "1.1.1", features = ["std"] }
34
35 [features]
36 default = ["std"]
37
38 # Enables `once_cell::sync` module.
39 std = ["alloc"]
40
41 # Enables `once_cell::race::OnceBox` type.
42 alloc = ["race"]
43
44 # Enables `once_cell::race` module.
45 race = []
46
47 # Uses parking_lot to implement once_cell::sync::OnceCell.
48 # This makes no speed difference, but makes each OnceCell<T>
49 # up to 16 bytes smaller, depending on the size of the T.
50 parking_lot = ["parking_lot_core"]
51
52 # Uses `critical-section` to implement `sync` and `race` modules. in
53 # `#![no_std]` mode. Please read `critical-section` docs carefully
54 # before enabling this feature.
55 critical-section = ["critical_section", "atomic_polyfill" ]
56
57 # Enables semver-exempt APIs of this crate.
58 # At the moment, this feature is unused.
59 unstable = []
60
61 # Only for backwards compatibility.
62 atomic-polyfill = ["critical-section"]
63
64 [[example]]
65 name = "bench"
66 required-features = ["std"]
67
68 [[example]]
69 name = "bench_acquire"
70 required-features = ["std"]
71
72 [[example]]
73 name = "bench_vs_lazy_static"
74 required-features = ["std"]
75
76 [[example]]
77 name = "lazy_static"
78 required-features = ["std"]
79
80 [[example]]
81 name = "reentrant_init_deadlocks"
82 required-features = ["std"]
83
84 [[example]]
85 name = "regex"
86 required-features = ["std"]
87
88 [[example]]
89 name = "test_synchronization"
90 required-features = ["std"]
91
92 [package.metadata.docs.rs]
93 all-features = true