-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
46 lines (39 loc) · 1.29 KB
/
Cargo.toml
File metadata and controls
46 lines (39 loc) · 1.29 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
[package]
name = "enrede"
version = "0.2.0"
edition = "2021"
keywords = ["encoding", "string", "algorithm", "utf8"]
categories = ["encoding", "algorithms"]
description = "An easy-to-use string encoding library, providing an interface similar to str/String."
license = "MIT OR Apache-2.0"
repository = "https://github.com/CraftSpider/enrede"
[features]
defaults = ["std"]
# Allow dependency on `std`
std = ["alloc"]
# Allow dependency on `alloc`
alloc = ["serde?/alloc"]
# Add support for using encodings as `Distribution` to generate characters valid for that encoding.
rand = ["dep:rand"]
# Add support for serializing/deserializing types
serde = ["dep:serde"]
[dependencies]
bytemuck = { version = "1.16", features = ["derive", "must_cast"] }
arrayvec = "0.7"
rand = { version = "0.9", optional = true, default-features = false }
serde = { version = "1.0", optional = true, default-features = false }
phf = { version = "0.11", default-features = false, features = ["macros"] }
[dev-dependencies]
criterion = "0.5"
rand = "0.9"
byte-unit = "5.1"
[target.'cfg(unix)'.dev-dependencies]
pprof = { version = "0.15", features = ["criterion", "flamegraph"] }
[profile.bench]
debug = true
[[bench]]
name = "encoding"
harness = false
required-features = ["alloc", "rand"]
[package.metadata.docs.rs]
all-features = true