askama/testing/Cargo.toml
René Kijewski dfcfde9ce9 generator: use re-exported core and std
This way, even a shadowed `core` or `std` does not prevent the generated
code from working correctly.
2024-10-04 06:40:00 +02:00

37 lines
862 B
TOML

[package]
name = "rinja_testing"
version = "0.3.4"
authors = ["rinja-rs developers"]
workspace = ".."
edition = "2021"
rust-version = "1.71"
publish = false
[features]
default = ["code-in-doc", "serde_json"]
code-in-doc = ["rinja/code-in-doc"]
serde_json = ["dep:serde_json", "rinja/serde_json"]
[dependencies]
rinja = { path = "../rinja", version = "0.3.4" }
serde_json = { version = "1.0", optional = true }
# intentionally shadow the name `::core` to test if the generated code still works fine
core = { package = "intentionally-empty", version = "1.0.0" }
[dev-dependencies]
rinja = { path = "../rinja", version = "0.3.4", features = ["code-in-doc", "serde_json"] }
criterion = "0.5"
phf = { version = "0.11", features = ["macros" ] }
trybuild = "1.0.76"
[[bench]]
name = "all"
harness = false
[[bench]]
name = "normalize_identifier"
harness = false