• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2authors = [
3    "Ashley Mannix<ashleymannix@live.com.au>",
4    "Christopher Armstrong",
5    "Dylan DPC<dylan.dpc@gmail.com>",
6    "Hunar Roop Kahlon<hunar.roop@gmail.com>"
7]
8categories = [
9    "data-structures",
10    "no-std",
11    "parser-implementations",
12    "wasm"
13]
14description = "A library to generate and parse UUIDs."
15documentation = "https://docs.rs/uuid"
16edition = "2018"
17include = [
18    "src",
19    "README.md",
20    "LICENSE-APACHE",
21    "LICENSE-MIT",
22]
23keywords = [
24    "guid",
25    "unique",
26    "uuid"
27]
28license = "Apache-2.0 OR MIT"
29homepage = "https://github.com/uuid-rs/uuid"
30name = "uuid"
31readme = "README.md"
32repository = "https://github.com/uuid-rs/uuid"
33version = "1.7.0" # remember to update html_root_url in lib.rs
34rust-version = "1.60.0"
35
36[package.metadata.docs.rs]
37rustc-args = ["--cfg", "uuid_unstable"]
38rustdoc-args = ["--cfg", "uuid_unstable"]
39targets = ["x86_64-unknown-linux-gnu"]
40features = ["serde", "arbitrary", "slog", "borsh", "v1", "v3", "v4", "v5", "v6", "v7", "v8"]
41
42[package.metadata.playground]
43features = ["serde", "v1", "v3", "v4", "v5", "v6", "v7", "v8"]
44
45[badges.is-it-maintained-issue-resolution]
46repository = "uuid-rs/uuid"
47
48[badges.is-it-maintained-open-issues]
49repository = "uuid-rs/uuid"
50
51[badges.maintenance]
52status = "actively-developed"
53
54[features]
55default = ["std"]
56std = []
57macro-diagnostics = ["dep:uuid-macro-internal"]
58
59# NOTE: When adding new features, check the `ci.yml` workflow
60# and include them where necessary (you can follow along with existing features)
61v1 = ["atomic"]
62v3 = ["md5"]
63v4 = ["rng"]
64v5 = ["sha1"]
65v6 = ["atomic"]
66v7 = ["atomic", "rng"]
67v8 = []
68
69js = ["dep:wasm-bindgen", "getrandom?/js"]
70
71rng = ["dep:getrandom"]
72fast-rng = ["rng", "dep:rand"]
73
74sha1 = ["dep:sha1_smol"]
75md5 = ["dep:md-5"]
76atomic = ["dep:atomic"]
77
78borsh = ["dep:borsh", "dep:borsh-derive"]
79
80# Public: Used in trait impls on `Uuid`
81[dependencies.bytemuck]
82version = "1.14.0"
83optional = true
84features = ["derive"]
85
86# Public: Used in trait impls on `Uuid`
87[dependencies.serde]
88default-features = false
89optional = true
90version = "1.0.56"
91
92# Public: Used in trait impls on `Uuid`
93[dependencies.slog]
94optional = true
95version = "2"
96
97# Public: Used in trait impls on `Uuid`
98[dependencies.arbitrary]
99optional = true
100version = "1.1.3"
101
102# Public (unstable): Used in `zerocopy` derive
103# Unstable: also need RUSTFLAGS="--cfg uuid_unstable" to work
104# This feature may break between releases, or be removed entirely before
105# stabilization.
106# See: https://github.com/uuid-rs/uuid/issues/588
107[dependencies.zerocopy]
108optional = true
109version = "0.6"
110
111# Public: Used in trait impls on `Uuid`
112[dependencies.borsh]
113optional = true
114version = "1"
115default-features = false
116
117# Private
118[dependencies.borsh-derive]
119optional = true
120version = "1"
121default-features = false
122
123# Public
124# Usage of `getrandom`'s pluggable randomness for custom targets is documented
125# in `uuid`'s library docs
126[dependencies.getrandom]
127optional = true
128version = "0.2"
129
130# Private
131[dependencies.rand]
132optional = true
133version = "0.8"
134
135# Private
136[dependencies.md-5]
137default-features = false
138optional = true
139version = "0.10"
140
141# Private
142[dependencies.sha1_smol]
143default-features = false
144optional = true
145version = "1"
146
147# Public: Re-exported
148[dependencies.uuid-macro-internal]
149version = "1.7.0"
150path = "macros"
151optional = true
152
153# Private
154[dependencies.atomic]
155default-features = false
156optional = true
157version = "0.5"
158
159# Private
160[dependencies.wasm-bindgen]
161version = "0.2"
162optional = true
163
164[dev-dependencies.bincode]
165version = "1.0"
166
167[dev-dependencies.serde_derive]
168version = "1.0.79"
169
170[dev-dependencies.serde_json]
171version = "1.0"
172
173[dev-dependencies.serde_test]
174version = "1.0.56"
175
176[target.'cfg(target = "wasm32-unknown-unknown")'.dev-dependencies.wasm-bindgen]
177version = "0.2"
178
179[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
180version = "0.3"
181
182[dev-dependencies.trybuild]
183version = "1.0.52"
184
185[dev-dependencies.rustversion]
186version = "1"
187
188[workspace]
189members = [
190    "macros",
191    "examples",
192    "tests/smoke-test",
193]
194