forked from boinkor-net/governor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
64 lines (54 loc) · 1.86 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
name = "governor"
version = "0.3.0-dev"
authors = ["Andreas Fuchs <[email protected]>"]
edition = "2018"
license = "MIT"
homepage = "https://github.com/antifuchs/governor"
repository = "https://github.com/antifuchs/governor.git"
readme = "README.md"
description = "A rate-limiting implementation in Rust"
documentation = "https://docs.rs/governor"
categories = ["algorithms", "network-programming", "concurrency", "no-std"]
keywords = ["rate-limiting", "rate-limit", "no_std", "gcra"]
# We use criterion, don't infer benchmark files.
autobenches = false
[package.metadata.template_ci.bench]
run = true
version = "nightly"
[package.metadata.template_ci.additional_matrix_entries]
[package.metadata.template_ci.additional_matrix_entries.no_std_nightly]
run = true
version = "nightly"
commandline = "cargo +nightly test --no-default-features --features no_std"
[package.metadata.template_ci.additional_matrix_entries.no_std_stable]
run = true
version = "stable"
commandline = "cargo test --no-default-features --features no_std"
[badges]
circle-ci = { repository = "antifuchs/governor", branch = "master" }
maintenance = { status = "actively-developed" }
[[bench]]
name = "governor_criterion_benches"
harness = false
[dev-dependencies]
criterion = "0.3.0"
tynm = "0.1.1"
crossbeam = "0.7.3"
libc = "0.2.41"
futures = "0.3.1"
proptest = "0.9.4"
more-asserts = "0.2.1"
[features]
default = ["std", "dashmap", "quanta"]
std = ["no-std-compat/std", "nonzero_ext/std", "futures-timer", "futures"]
no_std = []
[dependencies]
nonzero_ext = {version = "0.2.0", default-features = false}
parking_lot = "0.10.0"
futures-timer = {version = "3.0.2", optional = true}
futures = {version = "0.3.1", optional = true}
rand = "0.7.2"
dashmap = {version = "3.1.0", optional = true}
quanta = {version = "0.4.1", optional = true}
no-std-compat = { version = "0.4.0", features = [ "alloc", "compat_hash" ] }