]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
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 | |
a2a8927a | 6 | # to registry (e.g., crates.io) dependencies. |
e1599b0c | 7 | # |
a2a8927a XL |
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. | |
e1599b0c XL |
11 | |
12 | [package] | |
2b03887a FG |
13 | edition = "2021" |
14 | rust-version = "1.56" | |
e1599b0c | 15 | name = "once_cell" |
487cf647 | 16 | version = "1.16.0" |
e1599b0c | 17 | authors = ["Aleksey Kladov <aleksey.kladov@gmail.com>"] |
923072b8 FG |
18 | exclude = [ |
19 | "*.png", | |
20 | "*.svg", | |
21 | "/Cargo.lock.msrv", | |
22 | "rustfmt.toml", | |
23 | ] | |
e1599b0c XL |
24 | description = "Single assignment cells and lazy values." |
25 | documentation = "https://docs.rs/once_cell" | |
26 | readme = "README.md" | |
923072b8 FG |
27 | keywords = [ |
28 | "lazy", | |
29 | "static", | |
30 | ] | |
31 | categories = [ | |
32 | "rust-patterns", | |
33 | "memory-management", | |
34 | ] | |
e1599b0c XL |
35 | license = "MIT OR Apache-2.0" |
36 | repository = "https://github.com/matklad/once_cell" | |
923072b8 | 37 | |
5869c6ff XL |
38 | [package.metadata.docs.rs] |
39 | all-features = true | |
e1599b0c XL |
40 | |
41 | [[example]] | |
f035d41b | 42 | name = "bench" |
e1599b0c XL |
43 | required-features = ["std"] |
44 | ||
45 | [[example]] | |
f035d41b | 46 | name = "bench_acquire" |
e1599b0c XL |
47 | required-features = ["std"] |
48 | ||
49 | [[example]] | |
50 | name = "bench_vs_lazy_static" | |
51 | required-features = ["std"] | |
52 | ||
53 | [[example]] | |
54 | name = "lazy_static" | |
55 | required-features = ["std"] | |
56 | ||
f035d41b XL |
57 | [[example]] |
58 | name = "reentrant_init_deadlocks" | |
59 | required-features = ["std"] | |
60 | ||
e1599b0c XL |
61 | [[example]] |
62 | name = "regex" | |
63 | required-features = ["std"] | |
f035d41b XL |
64 | |
65 | [[example]] | |
66 | name = "test_synchronization" | |
67 | required-features = ["std"] | |
923072b8 | 68 | |
487cf647 | 69 | [dependencies.atomic_polyfill] |
f2b60f7d | 70 | version = "1" |
a2a8927a | 71 | optional = true |
487cf647 FG |
72 | package = "atomic-polyfill" |
73 | ||
74 | [dependencies.critical_section] | |
75 | version = "1" | |
76 | optional = true | |
77 | package = "critical-section" | |
a2a8927a | 78 | |
923072b8 FG |
79 | [dependencies.parking_lot_core] |
80 | version = "0.9.3" | |
e1599b0c XL |
81 | optional = true |
82 | default_features = false | |
923072b8 | 83 | |
487cf647 FG |
84 | [dev-dependencies.critical_section] |
85 | version = "1.1.1" | |
86 | features = ["std"] | |
87 | package = "critical-section" | |
88 | ||
e1599b0c | 89 | [dev-dependencies.crossbeam-utils] |
923072b8 | 90 | version = "0.8.7" |
e1599b0c XL |
91 | |
92 | [dev-dependencies.lazy_static] | |
93 | version = "1.0.0" | |
94 | ||
95 | [dev-dependencies.regex] | |
96 | version = "1.2.0" | |
97 | ||
98 | [features] | |
6a06907d | 99 | alloc = ["race"] |
487cf647 FG |
100 | atomic-polyfill = ["critical-section"] |
101 | critical-section = [ | |
102 | "critical_section", | |
103 | "atomic_polyfill", | |
104 | ] | |
e1599b0c | 105 | default = ["std"] |
923072b8 | 106 | parking_lot = ["parking_lot_core"] |
6a06907d | 107 | race = [] |
5869c6ff XL |
108 | std = ["alloc"] |
109 | unstable = [] |