-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
79 lines (65 loc) · 2 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "axum-template"
version = "2.4.0"
edition = "2021"
license = "MIT"
description = "Layers, extractors and template engine wrappers for axum based Web MVC applications"
homepage = "https://github.com/Altair-Bueno/axum-template"
repository = "https://github.com/Altair-Bueno/axum-template"
readme = "README.md"
keywords = ["axum", "minijinja", "tera", "handlebars", "mvc"]
categories = ["template-engine", "web-programming"]
[package.metadata.docs.rs]
all-features = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = "1"
thiserror = "2"
# Supported template engines
tera = { version = "1.19.0", optional = true, default-features = false }
handlebars = { version = "6.0.0", optional = true, default-features = false }
minijinja = { version = "2.0.1", optional = true, default-features = false }
minijinja-autoreload = { version = "2.0.1", optional = true, default-features = false }
[dependencies.axum]
version = "0.7.1"
default-features = false
features = ["matched-path"]
[dev-dependencies]
tokio = { version = "1.22.0", features = ["full"] }
serde = { version = "1", features = ["derive"] }
tower-http = { version = "0.6.0", features = ["full"] }
tower = { version = "0.5.0", features = ["full"] }
axum = { version = "0.7.1", features = ["macros", "tokio"] }
rstest = "0.23.0"
speculoos = "0.11.0"
anyhow = "1.0.61"
hyper = "1.0.1"
rand = "0.8.5"
[[example]]
name = "tera"
required-features = ["tera"]
[[example]]
name = "handlebars"
required-features = ["handlebars"]
[[example]]
name = "minijinja"
required-features = ["minijinja"]
[[example]]
name = "minijinja-autoreload"
required-features = [
"minijinja-autoreload",
"minijinja-autoreload/watch-fs",
"minijinja",
"minijinja/loader",
]
[[example]]
name = "custom_key"
required-features = ["tera"]
[[example]]
name = "custom_engine"
[[example]]
name = "nested"
required-features = ["handlebars"]
[[example]]
name = "dynamic_template"
required-features = ["handlebars"]