forked from Keats/tera2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (53 loc) · 1.38 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
[package]
name = "tera"
version = "2.0.0"
edition = "2021"
[dependencies]
serde = "1"
# Optional deps
indexmap = { version = "2", optional = true }
hashbrown = { version = "0.14", optional = true }
unic-segment = { version = "0.9", optional = true }
itoa = { version = "1.0.9", optional = true }
ryu = { version = "1.0.15", optional = true }
[features]
default = []
# Use hashbrown with ahash hashing to improve performance
ahash = ["hashbrown", "hashbrown/serde"]
# Keep order of insertion for Value
preserve_order = ["dep:indexmap"]
# If we want Tera to work with graphemes clusters rather than utf-8 characters when iterating on strings
unicode = ["dep:unic-segment"]
# Improve performance by adding extra dependencies
fast = ["no-fmt"]
# Use itoa/ryu to format numbers (instead of std::fmt)
no-fmt = ["itoa", "ryu"]
[dev-dependencies]
criterion = "0.5"
iai-callgrind = "0.8.0"
insta = { version = "1", features = ["glob"] }
serde_derive = "1.0.156"
[lib]
doctest = false
[[bench]]
name = "value"
harness = false
[[bench]]
name = "escape"
harness = false
[[bench]]
name = "templates"
harness = false
# you can enable the benches below on Linux provided you have everything installed.
# see https://github.com/iai-callgrind/iai-callgrind for details
#[[bench]]
#name = "iai-value"
#harness = false
#
#[[bench]]
#name = "iai-escape"
#harness = false
#
#[[bench]]
#name = "iai-templates"
#harness = false