[package] name = "rinja" version = "0.3.5" description = "Type-safe, compiled Jinja-like templates for Rust" documentation = "https://docs.rs/rinja" keywords = ["markup", "template", "jinja2", "html"] categories = ["template-engine"] homepage = "https://rinja.readthedocs.io/" repository = "https://github.com/rinja-rs/rinja" license = "MIT OR Apache-2.0" workspace = ".." readme = "../README.md" edition = "2021" rust-version = "1.71" [package.metadata.docs.rs] features = ["full"] rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"] [badges] maintenance = { status = "actively-developed" } [features] default = ["config", "humansize", "urlencode"] full = ["default", "code-in-doc", "serde_json"] code-in-doc = ["rinja_derive/code-in-doc"] config = ["rinja_derive/config"] humansize = ["rinja_derive/humansize", "dep:humansize"] serde_json = ["rinja_derive/serde_json", "dep:serde", "dep:serde_json"] urlencode = ["rinja_derive/urlencode", "dep:percent-encoding"] # Please do not depend on the following features manually. # Depend on the relevant integration crate instead! with-actix-web = ["rinja_derive/with-actix-web"] with-axum = ["rinja_derive/with-axum"] with-rocket = ["rinja_derive/with-rocket"] with-warp = ["rinja_derive/with-warp"] [dependencies] rinja_derive = { version = "=0.3.5", path = "../rinja_derive" } humansize = { version = "2", optional = true } num-traits = { version = "0.2.6", optional = true } percent-encoding = { version = "2.1.0", optional = true } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } itoa = "1.0.11" [dev-dependencies] criterion = "0.5" [[bench]] name = "to-json" harness = false required-features = ["serde_json"] [[bench]] name = "escape" harness = false