askama/askama_macros/Cargo.toml
René Kijewski e80b710f67 derive: add feature to disable all file system access
If you want to fuzz the code generator, it's essential that no local
files are accessed, e.g. through `{% import %}`.

This DOES NOT mean that the generated code is safe; this is not a
sandbox. The generated code can still contain

* evil compile-time code: `{{ include_str!("/etc/passwd") }}`
* evil runtime code: `{{ std::fs::remove_dir_all("/home/user") %}`

But during the code generation nothing potentially bad should happen.
2025-05-17 23:08:27 +02:00

41 lines
1.0 KiB
TOML

[package]
name = "askama_macros"
version = "0.14.0"
description = "Procedural macro package for Askama"
homepage = "https://github.com/askama-rs/askama"
repository = "https://github.com/askama-rs/askama"
license = "MIT OR Apache-2.0"
readme = "README.md"
edition = "2021"
rust-version = "1.83"
publish = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
[lib]
proc-macro = true
[dependencies.askama_derive]
package = "askama_derive"
path = "../askama_derive"
version = "=0.14.0"
default-features = false
features = ["external-sources", "proc-macro"]
[features]
default = ["config", "derive", "std", "urlencode"]
full = ["default", "blocks", "code-in-doc", "serde_json"]
alloc = ["askama_derive/alloc"]
blocks = ["askama_derive/blocks"]
code-in-doc = ["askama_derive/code-in-doc"]
config = ["askama_derive/config"]
serde_json = ["askama_derive/serde_json"]
std = ["askama_derive/std"]
urlencode = ["askama_derive/urlencode"]
# Unused, but we want to have the same features as `askama`.
derive = []