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]
13edition = "2021"
14rust-version = "1.60"
15name = "once_cell"
16version = "1.19.0"
17authors = ["Aleksey Kladov <[email protected]>"]
18exclude = [
19    "*.png",
20    "*.svg",
21    "/Cargo.lock.msrv",
22    "rustfmt.toml",
23]
24description = "Single assignment cells and lazy values."
25documentation = "https://docs.rs/once_cell"
26readme = "README.md"
27keywords = [
28    "lazy",
29    "static",
30]
31categories = [
32    "rust-patterns",
33    "memory-management",
34]
35license = "MIT OR Apache-2.0"
36repository = "https://github.com/matklad/once_cell"
37
38[package.metadata.docs.rs]
39all-features = true
40rustdoc-args = ["--generate-link-to-definition"]
41
42[[example]]
43name = "bench"
44required-features = ["std"]
45
46[[example]]
47name = "bench_acquire"
48required-features = ["std"]
49
50[[example]]
51name = "lazy_static"
52required-features = ["std"]
53
54[[example]]
55name = "reentrant_init_deadlocks"
56required-features = ["std"]
57
58[[example]]
59name = "regex"
60required-features = ["std"]
61
62[[example]]
63name = "test_synchronization"
64required-features = ["std"]
65
66[dependencies.critical-section]
67version = "1"
68optional = true
69
70[dependencies.parking_lot_core]
71version = "0.9.3"
72optional = true
73default_features = false
74
75[dependencies.portable-atomic]
76version = "1"
77optional = true
78
79[dev-dependencies.critical-section]
80version = "1.1.1"
81features = ["std"]
82
83[dev-dependencies.regex]
84version = "1.2.0"
85
86[features]
87alloc = ["race"]
88atomic-polyfill = ["critical-section"]
89critical-section = [
90    "dep:critical-section",
91    "portable-atomic",
92]
93default = ["std"]
94parking_lot = ["dep:parking_lot_core"]
95race = []
96std = ["alloc"]
97unstable = []
98