-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
44 lines (37 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
[package]
name = "snowdon"
version = "0.2.0"
authors = ["Archer <archer@nefarious.dev>"]
edition = "2021"
rust-version = "1.56.1"
description = "A lightweight thread-safe snowflake ID implementation for Rust"
readme = "README.md"
repository = "https://github.com/archer-321/snowdon"
license = "Apache-2.0 OR MIT"
keywords = ["snowflake", "id", "lock-free", "lightweight"]
categories = ["concurrency", "web-programming"]
exclude = ["/spin", "/.rustfmt-nightly.toml"]
[dependencies]
serde = { version = "^1.0", features = ["derive"], optional = true }
[dev-dependencies]
criterion = "^0.5"
lazy_static = "^1.4"
parking_lot = "^0.12"
[target.'cfg(loom)'.dependencies]
loom = "^0.5"
[features]
default = ["lock-free"]
lock-free = []
blocking = []
# The `serde` feature is implicitly specified by the optional depencency
[[test]]
name = "loom_generator"
# Running this test requires `--cfg loom`, so we don't run it by default
test = false
[[bench]]
name = "simple_snowflake"
harness = false
required-features = ["blocking", "lock-free"]
[package.metadata.docs.rs]
features = ["serde"]
rustdoc-args = ["--cfg", "docsrs"]