| # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| # |
| # When uploading crates to the registry Cargo will automatically |
| # "normalize" Cargo.toml files for maximal compatibility |
| # with all versions of Cargo and also rewrite `path` dependencies |
| # to registry (e.g., crates.io) dependencies. |
| # |
| # If you are reading this file be aware that the original Cargo.toml |
| # will likely look very different (and much more reasonable). |
| # See Cargo.toml.orig for the original contents. |
| |
| [package] |
| edition = "2021" |
| rust-version = "1.71" |
| name = "rinja" |
| version = "0.3.4" |
| build = false |
| autobins = false |
| autoexamples = false |
| autotests = false |
| autobenches = false |
| description = "Type-safe, compiled Jinja-like templates for Rust" |
| homepage = "https://rinja.readthedocs.io/" |
| documentation = "https://docs.rs/rinja" |
| readme = "README.md" |
| keywords = [ |
| "markup", |
| "template", |
| "jinja2", |
| "html", |
| ] |
| categories = ["template-engine"] |
| license = "MIT OR Apache-2.0" |
| repository = "https://github.com/rinja-rs/rinja" |
| |
| [package.metadata.docs.rs] |
| features = [ |
| "default", |
| "serde_json", |
| ] |
| rustdoc-args = [ |
| "--generate-link-to-definition", |
| "--cfg=docsrs", |
| ] |
| |
| [lib] |
| name = "rinja" |
| path = "src/lib.rs" |
| |
| [[bench]] |
| name = "escape" |
| path = "benches/escape.rs" |
| harness = false |
| |
| [[bench]] |
| name = "to-json" |
| path = "benches/to-json.rs" |
| harness = false |
| required-features = ["serde_json"] |
| |
| [dependencies.humansize] |
| version = "2" |
| optional = true |
| |
| [dependencies.itoa] |
| version = "1.0.11" |
| |
| [dependencies.num-traits] |
| version = "0.2.6" |
| optional = true |
| |
| [dependencies.percent-encoding] |
| version = "2.1.0" |
| optional = true |
| |
| [dependencies.rinja_derive] |
| version = "=0.3.4" |
| |
| [dependencies.serde] |
| version = "1.0" |
| optional = true |
| |
| [dependencies.serde_json] |
| version = "1.0" |
| optional = true |
| |
| [dev-dependencies.criterion] |
| version = "0.5" |
| |
| [features] |
| code-in-doc = ["rinja_derive/code-in-doc"] |
| config = ["rinja_derive/config"] |
| default = [ |
| "config", |
| "humansize", |
| "num-traits", |
| "urlencode", |
| ] |
| humansize = [ |
| "rinja_derive/humansize", |
| "dep:humansize", |
| ] |
| num-traits = [ |
| "rinja_derive/num-traits", |
| "dep:num-traits", |
| ] |
| serde_json = [ |
| "rinja_derive/serde_json", |
| "dep:serde", |
| "dep:serde_json", |
| ] |
| urlencode = [ |
| "rinja_derive/urlencode", |
| "dep:percent-encoding", |
| ] |
| 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"] |
| |
| [badges.maintenance] |
| status = "actively-developed" |