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[package]
name = "srtemplate"
version = "0.3.3"
edition = "2021"
description = "Template String blazing fast with dependencyless"
categories = ["template-engine", "text-processing"]
keywords = ["runtime", "string", "template"]
authors = ["Sergio Ribera"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/SergioRibera/srtemplate"
homepage = "https://github.com/SergioRibera/srtemplate"
readme = "README.md"
include = ["**/**/*.rs", "Cargo.toml", "rust-toolchain.toml", "rustfmt.toml"]
exclude = ["examples/real_world/"]
[workspace]
members = ["helper_macros"]
exclude = ["examples/real_world"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.bench]
lto = true
[profile.dev]
opt-level = 1
incremental = true
[profile.release]
strip = true
lto = "thin"
panic = 'abort'
opt-level = 3
codegen-units = 1
[features]
default = ["text", "os", "math", "typed_args"]
debug = ["dep:log"]
text = []
os = []
math = ["dep:paste"]
typed_args = []
macros = ["helper_macros"]
[dev-dependencies]
divan = "0.1.14"
[dependencies]
dashmap = "5.5.3"
thiserror = "1.0.49"
paste = { version = "1.0.14", optional = true }
log = { version = "0.4.20", optional = true }
helper_macros = { package = "srtemplate_helper_macros", version = "0.1", path = "helper_macros", optional = true }
[[bench]]
name = "parser"
harness = false
[[example]]
name = "parse_args"
required-features = ["typed_args"]
path = "./examples/parse_args.rs"
[[example]]
name = "macros"
required-features = ["macros"]
path = "./examples/macros.rs"