-
Notifications
You must be signed in to change notification settings - Fork 33
/
Cargo.toml
73 lines (52 loc) · 1.67 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
65
66
67
68
69
70
71
72
73
[package]
name = "quanta"
version = "0.11.0"
authors = ["Toby Lawrence <toby@nuclearfurnace.com>"]
edition = "2021"
rust-version = "1.60"
license = "MIT"
description = "high-speed timing library"
homepage = "https://github.com/metrics-rs/quanta"
repository = "https://github.com/metrics-rs/quanta"
documentation = "https://docs.rs/quanta"
readme = "README.md"
keywords = ["rdtsc", "timing", "nanosecond"]
[package.metadata.docs.rs]
all-features = true
[lib]
bench = false
[[bench]]
name = "timing"
harness = false
[[bench]]
name = "contention"
harness = false
[features]
default = ["flaky_tests"]
flaky_tests = []
prost = ["prost-types"]
[dependencies]
once_cell = "1.4"
prost-types = { version = "0.11", default-features = false, optional = true }
crossbeam-utils = "0.8.5"
[target.'cfg(target_arch = "x86")'.dependencies]
raw-cpuid = "10.2"
[target.'cfg(target_arch = "x86_64")'.dependencies]
raw-cpuid = "10.2"
[target.'cfg(not(any(target_os = "macos", target_os = "ios", target_os = "windows", target_arch = "wasm32")))'.dependencies]
libc = "0.2"
[target.'cfg(target_os = "macos")'.dependencies]
mach2 = "0.4"
[target.'cfg(target_os = "ios")'.dependencies]
mach2 = "0.4"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["profileapi"] }
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
web-sys = { version = "0.3", features = ["Window", "Performance"] }
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies]
wasi = "0.11"
[dev-dependencies]
average = "0.13"
criterion = "=0.3.3"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
wasm-bindgen-test = "0.3"