-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
65 lines (56 loc) · 1.76 KB
/
Cargo.toml
File metadata and controls
65 lines (56 loc) · 1.76 KB
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
[package]
name = "bencodex-rs"
version = "0.6.0"
authors = ["moreal <dev.moreal@gmail.com>"]
edition = "2024"
description = "The Rust implementation of Bencodex"
license = "MIT"
keywords = ["bencodex", "encoding", "decoding"]
homepage = "https://github.com/bencodex/bencodex-rs"
repository = "https://github.com/bencodex/bencodex-rs"
documentation = "https://docs.rs/crate/bencodex-rs"
[lib]
name = "bencodex"
path = "src/lib.rs"
[[bin]]
name = "bencodex"
path = "src/main.rs"
required-features = ["json-cli"]
[features]
default = ["std"]
std = ["alloc", "num-bigint/std", "num-traits/std"]
alloc = []
json = ["std", "serde", "serde_json", "hex/std", "base64/std", "faster-hex"]
json-cli = ["json", "clap"]
test = ["base64"]
simd = ["std"] # SIMD (runtime CPU detection)
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
itoa = "1"
num-traits = { version = "0.2.19", default-features = false }
num-bigint = { version = "0.4.6", default-features = false }
hex = { version = "0.4.3", default-features = false, features = ["alloc"], optional = true }
faster-hex = { version = "0.10", optional = true }
base64 = { version = "0.22.1", default-features = false, features = ["alloc"], optional = true }
clap = { version = "4.5.8", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
serde = { version = "1.0", optional = true }
[dev-dependencies]
yaml-rust = "0.4.5"
syn = "2.0.68"
quote = "1.0.36"
criterion = { version = "2.7.2", package = "codspeed-criterion-compat" }
proptest = "1"
base64 = "0.22.1"
rand = "0.9"
[[bench]]
name = "encode"
harness = false
[[bench]]
name = "decode"
harness = false
[profile.profiling]
inherits = "release"
debug = 2
strip = false
lto = false