-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
74 lines (62 loc) · 1.66 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
[package]
name = "tinystr"
description = """
A small ASCII-only bounded length string representation.
"""
version = "0.4.12"
authors = [
"Raph Levien <raph.levien@gmail.com>",
"Zibi Braniecki <zibi@braniecki.net>",
"Shane F. Carr <shane@sffc.xyz>",
"Manish Goregaokar <manishsmail@gmail.com>"
]
edition = "2018"
license = "Apache-2.0/MIT"
repository = "https://github.com/zbraniecki/tinystr"
readme = "README.md"
keywords = ["string", "str", "small", "tiny", "no_std"]
categories = ["data-structures"]
# needed to avoid dev-dependency features unifying
resolver = "2"
[dependencies]
serde = { version = "1.0.123", optional = true, default-features = false, features = ["alloc"] }
tinystr-macros = { version = "0.2", path = "./macros" }
tinystr-raw = { version = "0.1.3", path = "./raw" }
zerovec = {version = "0.5.0", optional = true }
[dev-dependencies]
criterion = "0.3"
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
bincode = "1.3"
iai = "0.1"
rand = "0.8"
rand_pcg = "0.3"
rand_distr = "0.4"
[features]
default = [ "std" ] # Default to using the std
# Use the standard library. Enables TinyStrAuto.
std = ["tinystr-raw/std"]
# Use the `alloc` crate. Enables TinyStrAuto. This feature does nothing if std is enabled.
alloc = []
[package.metadata.docs.rs]
all-features = true
[[bench]]
name = "construct"
harness = false
required-features = ["std"]
[[bench]]
name = "tinystr"
harness = false
[[bench]]
name = "match"
harness = false
[[bench]]
name = "binarysearch"
harness = false
required-features = ["std"]
[[bench]]
name = "bench_iai"
harness = false
required-features = ["std"]
[[test]]
name = "serde"
required-features = ["serde"]