-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
95 lines (83 loc) · 2.57 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "hifitime"
version = "4.0.0"
authors = ["Christopher Rabotin <[email protected]>"]
description = "Ultra-precise date and time handling in Rust for scientific applications with leap second support"
homepage = "https://nyxspace.com/"
documentation = "https://docs.rs/hifitime/"
repository = "https://github.com/nyx-space/hifitime"
keywords = ["date", "time", "science", "leap-second", "no-std"]
categories = ["date-and-time", "no-std"]
readme = "README.md"
license = "Apache-2.0"
exclude = ["*.tar.gz", "data/"]
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
name = "hifitime"
[dependencies]
serde = { version = "1.0.155", optional = true }
serde_derive = { version = "1.0.155", optional = true }
pyo3 = { version = "0.22.0", features = [
"extension-module",
"multiple-pymethods",
], optional = true }
num-traits = { version = "0.2.15", default-features = false, features = [
"libm",
] }
lexical-core = { version = "1.0.1", default-features = false, features = [
"parse-integers",
"parse-floats",
] }
reqwest = { version = "0.12", features = ["blocking", "json"], optional = true }
tabled = { version = "0.16.0", optional = true }
openssl = { version = "0.10", features = ["vendored"], optional = true }
web-time = { version = "1.0.0", optional = true }
snafu = { version = "0.8.2", default-features = false }
[features]
default = ["std"]
std = ["serde", "serde_derive", "web-time", "snafu/std", "snafu/backtrace"]
python = ["std", "pyo3", "ut1"]
ut1 = ["std", "reqwest", "tabled", "openssl"]
[dev-dependencies]
serde_json = "1.0.91"
criterion = "0.5.1"
iai = "0.1"
[target.wasm32-unknown-unknown.dependencies]
js-sys = { version = "0.3" }
wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2" }
web-sys = { version = "0.3", features = [
'Window',
'Performance',
'PerformanceTiming',
] }
[target.wasm32-unknown-emscripten.dependencies]
js-sys = { version = "0.3" }
wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2" }
web-sys = { version = "0.3", features = [
'Window',
'Performance',
'PerformanceTiming',
] }
[target.asmjs-unknown-emscripten.dependencies]
js-sys = { version = "0.3" }
wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2" }
web-sys = { version = "0.3", features = [
'Window',
'Performance',
'PerformanceTiming',
] }
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }
[[bench]]
name = "crit_epoch"
harness = false
[[bench]]
name = "crit_duration"
harness = false
[[bench]]
name = "iai_duration"
harness = false
[[bench]]
name = "iai_epoch"
harness = false