-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
59 lines (47 loc) · 1.41 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
[package]
name = "bp7"
version = "0.10.6" # managed by release.sh
authors = ["Lars Baumgaertner <[email protected]>"]
edition = "2018"
description = "Rust implementation of dtn Bundle Protocol Version 7 ([RFC 9171]"
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtn7/bp7-rs"
categories = ["encoding"]
readme = "README.md"
[profile.release]
#debug = true
lto = true
[[bin]]
name = "bp7"
required-features = ["binary-build"]
[lib]
name = "bp7"
crate-type = ["staticlib", "cdylib", "rlib"]
[dev-dependencies]
criterion = "0.5.1"
test-case = { version = "3.3.1" }
[[bench]]
name = "benchmark"
harness = false
[features]
default = ["binary-build"]
binary-build = ["instant"]
benchmark-helpers = ["instant"]
[dependencies]
humantime = "2.1.0"
serde = { version = "1.0.193", features = ["derive"] }
serde_cbor = "0.11.1"
serde_json = "1.0.61"
serde_bytes = "0.11.5"
crc = "3.0.1"
thiserror = "1.0.23"
bitflags = "2.2.1"
# non wasm config
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
nanorand = { version = "0.7.0", default-features = true }
instant = { version = "0.1.9", features = ["now"], optional = true }
# wasm specific
[target.'cfg(target_arch = "wasm32")'.dependencies]
stdweb = "0.4.20"
nanorand = { version = "0.7.0", features = ["getrandom"] }
instant = { version = "0.1.9", features = ["stdweb", "now"], optional = true }