• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.56"
15name = "once_cell"
16version = "1.17.1"
17authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"]
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
40
41[[example]]
42name = "bench"
43required-features = ["std"]
44
45[[example]]
46name = "bench_acquire"
47required-features = ["std"]
48
49[[example]]
50name = "bench_vs_lazy_static"
51required-features = ["std"]
52
53[[example]]
54name = "lazy_static"
55required-features = ["std"]
56
57[[example]]
58name = "reentrant_init_deadlocks"
59required-features = ["std"]
60
61[[example]]
62name = "regex"
63required-features = ["std"]
64
65[[example]]
66name = "test_synchronization"
67required-features = ["std"]
68
69[dependencies.atomic_polyfill]
70version = "1"
71optional = true
72package = "atomic-polyfill"
73
74[dependencies.critical_section]
75version = "1"
76optional = true
77package = "critical-section"
78
79[dependencies.parking_lot_core]
80version = "0.9.3"
81optional = true
82default_features = false
83
84[dev-dependencies.critical_section]
85version = "1.1.1"
86features = ["std"]
87package = "critical-section"
88
89[dev-dependencies.crossbeam-utils]
90version = "0.8.7"
91
92[dev-dependencies.lazy_static]
93version = "1.0.0"
94
95[dev-dependencies.regex]
96version = "1.2.0"
97
98[features]
99alloc = ["race"]
100atomic-polyfill = ["critical-section"]
101critical-section = [
102    "critical_section",
103    "atomic_polyfill",
104]
105default = ["std"]
106parking_lot = ["parking_lot_core"]
107race = []
108std = ["alloc"]
109unstable = []
110