Use Ructe (#327)

All the template are now compiled at compile-time with the `ructe` crate.

I preferred to use it instead of askama because it allows more complex Rust expressions, where askama only supports a small subset of expressions and doesn't allow them everywhere (for instance, `{{ macro!() | filter }}` would result in a parsing error).

The diff is quite huge, but there is normally no changes in functionality.

Fixes #161 and unblocks #110 and #273
This commit is contained in:
Baptiste Gelez
2018-12-06 18:54:16 +01:00
committed by GitHub
parent 5f059c3e98
commit 70af57c6e1
121 changed files with 3132 additions and 3260 deletions
+2 -4
View File
@@ -6,6 +6,7 @@ authors = ["Baptiste Gelez <baptiste@gelez.xyz>"]
[dependencies]
activitypub = "0.1.1"
ammonia = "1.2.0"
askama_escape = "0.1"
bcrypt = "0.2"
canapi = "0.1"
guid-create = "0.1"
@@ -13,6 +14,7 @@ heck = "0.3.0"
itertools = "0.7.8"
lazy_static = "*"
openssl = "0.10.11"
rocket = "0.4.0-rc.1"
reqwest = "0.9"
serde = "1.0"
serde_derive = "1.0"
@@ -36,10 +38,6 @@ path = "../plume-api"
[dependencies.plume-common]
path = "../plume-common"
[dependencies.rocket]
git = "https://github.com/SergioBenitez/Rocket"
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
[dev-dependencies]
diesel_migrations = "1.3.0"