-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
34 lines (30 loc) · 1.12 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[package]
name = "scru128"
version = "3.1.0"
authors = ["LiosK <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
description = "SCRU128: Sortable, Clock and Random number-based Unique identifier"
repository = "https://github.com/scru128/rust"
keywords = ["identifier", "uuid", "guid", "ulid", "ksuid"]
categories = ["algorithms"]
[features]
default = ["global_gen"]
std = ["fstr/std"]
rand = ["dep:rand"]
default_rng = ["std", "rand", "rand/std", "dep:rand_chacha"]
global_gen = ["default_rng"]
serde = ["dep:serde"]
[dependencies]
fstr = { version = "0.2", default-features = false }
rand = { version = "0.8", default-features = false, optional = true }
rand_chacha = { version = "0.3", optional = true }
serde = { version = "1.0", default-features = false, optional = true }
[dev-dependencies]
rand = { version = "0.8", default-features = false, features = ["std_rng"] }
regex = { version = "1.10", default-features = false, features = ["std"] }
serde_test = "1.0"
[package.metadata.docs.rs]
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
all-features = true
rustdoc-args = ["--cfg", "docsrs"]