| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.81" |
| 15 |
name = "askama" |
| 16 |
version = "0.13.1" |
| 17 |
build = false |
| 18 |
autolib = false |
| 19 |
autobins = false |
| 20 |
autoexamples = false |
| 21 |
autotests = false |
| 22 |
autobenches = false |
| 23 |
description = "Type-safe, compiled Jinja-like templates for Rust" |
| 24 |
homepage = "https://askama.readthedocs.io/" |
| 25 |
readme = "README.md" |
| 26 |
keywords = [ |
| 27 |
"markup", |
| 28 |
"template", |
| 29 |
"jinja2", |
| 30 |
"html", |
| 31 |
] |
| 32 |
categories = ["template-engine"] |
| 33 |
license = "MIT OR Apache-2.0" |
| 34 |
repository = "https://github.com/askama-rs/askama" |
| 35 |
|
| 36 |
[package.metadata.docs.rs] |
| 37 |
features = ["full"] |
| 38 |
rustdoc-args = [ |
| 39 |
"--generate-link-to-definition", |
| 40 |
"--cfg=docsrs", |
| 41 |
] |
| 42 |
|
| 43 |
[badges.maintenance] |
| 44 |
status = "actively-developed" |
| 45 |
|
| 46 |
[features] |
| 47 |
alloc = [ |
| 48 |
"askama_derive?/alloc", |
| 49 |
"serde?/alloc", |
| 50 |
"serde_json?/alloc", |
| 51 |
"percent-encoding?/alloc", |
| 52 |
] |
| 53 |
blocks = ["askama_derive?/blocks"] |
| 54 |
code-in-doc = ["askama_derive?/code-in-doc"] |
| 55 |
config = ["askama_derive?/config"] |
| 56 |
default = [ |
| 57 |
"config", |
| 58 |
"derive", |
| 59 |
"std", |
| 60 |
"urlencode", |
| 61 |
"askama_derive?/default", |
| 62 |
] |
| 63 |
derive = ["askama_derive"] |
| 64 |
full = [ |
| 65 |
"default", |
| 66 |
"blocks", |
| 67 |
"code-in-doc", |
| 68 |
"serde_json", |
| 69 |
"askama_derive?/full", |
| 70 |
] |
| 71 |
serde_json = [ |
| 72 |
"std", |
| 73 |
"askama_derive?/serde_json", |
| 74 |
"dep:serde", |
| 75 |
"dep:serde_json", |
| 76 |
] |
| 77 |
std = [ |
| 78 |
"alloc", |
| 79 |
"askama_derive?/std", |
| 80 |
"serde?/std", |
| 81 |
"serde_json?/std", |
| 82 |
"percent-encoding?/std", |
| 83 |
] |
| 84 |
urlencode = [ |
| 85 |
"askama_derive?/urlencode", |
| 86 |
"dep:percent-encoding", |
| 87 |
] |
| 88 |
|
| 89 |
[lib] |
| 90 |
name = "askama" |
| 91 |
path = "src/lib.rs" |
| 92 |
|
| 93 |
[[bench]] |
| 94 |
name = "escape" |
| 95 |
path = "benches/escape.rs" |
| 96 |
harness = false |
| 97 |
|
| 98 |
[[bench]] |
| 99 |
name = "to-json" |
| 100 |
path = "benches/to-json.rs" |
| 101 |
harness = false |
| 102 |
required-features = ["serde_json"] |
| 103 |
|
| 104 |
[dependencies.askama_derive] |
| 105 |
version = "=0.13.1" |
| 106 |
optional = true |
| 107 |
default-features = false |
| 108 |
|
| 109 |
[dependencies.itoa] |
| 110 |
version = "1.0.11" |
| 111 |
|
| 112 |
[dependencies.percent-encoding] |
| 113 |
version = "2.1.0" |
| 114 |
optional = true |
| 115 |
default-features = false |
| 116 |
|
| 117 |
[dependencies.serde] |
| 118 |
version = "1.0" |
| 119 |
optional = true |
| 120 |
default-features = false |
| 121 |
|
| 122 |
[dependencies.serde_json] |
| 123 |
version = "1.0" |
| 124 |
optional = true |
| 125 |
default-features = false |
| 126 |
|
| 127 |
[dev-dependencies.assert_matches] |
| 128 |
version = "1.5.0" |
| 129 |
|
| 130 |
[dev-dependencies.criterion] |
| 131 |
version = "0.5" |