mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
70af57c6e1
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
74 lines
1.5 KiB
TOML
74 lines
1.5 KiB
TOML
[package]
|
|
authors = ["Bat' <baptiste@gelez.xyz>"]
|
|
name = "plume"
|
|
version = "0.2.0"
|
|
|
|
[dependencies]
|
|
activitypub = "0.1.3"
|
|
askama_escape = "0.1"
|
|
atom_syndication = "0.6"
|
|
canapi = "0.1"
|
|
colored = "1.6"
|
|
dotenv = "0.13"
|
|
failure = "0.1"
|
|
guid-create = "0.1"
|
|
heck = "0.3.0"
|
|
num_cpus = "1.0"
|
|
rocket = "0.4.0-rc.1"
|
|
rocket_contrib = { version = "0.4.0-rc.1", features = ["json"] }
|
|
rocket_i18n = "0.3.1"
|
|
rpassword = "2.0"
|
|
scheduled-thread-pool = "0.2.0"
|
|
serde = "1.0"
|
|
serde_derive = "1.0"
|
|
serde_json = "1.0"
|
|
serde_qs = "0.4"
|
|
validator = "0.8"
|
|
validator_derive = "0.7"
|
|
webfinger = "0.3.1"
|
|
|
|
[[bin]]
|
|
name = "plume"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies.chrono]
|
|
features = ["serde"]
|
|
version = "0.4"
|
|
|
|
[dependencies.ctrlc]
|
|
features = ["termination"]
|
|
version = "3.1.1"
|
|
|
|
[dependencies.diesel]
|
|
features = ["r2d2", "chrono"]
|
|
version = "*"
|
|
|
|
[dependencies.multipart]
|
|
default-features = false
|
|
features = ["server"]
|
|
version = "0.15"
|
|
|
|
[dependencies.plume-api]
|
|
path = "plume-api"
|
|
|
|
[dependencies.plume-common]
|
|
path = "plume-common"
|
|
|
|
[dependencies.plume-models]
|
|
path = "plume-models"
|
|
|
|
[dependencies.rocket_csrf]
|
|
git = "https://github.com/fdb-hiroshima/rocket_csrf"
|
|
rev = "717fad53cfd2ee5cbee5b4571f6190644f9dddd7"
|
|
|
|
[build-dependencies]
|
|
ructe = "0.5.2"
|
|
rocket_i18n = { version = "0.3.1", features = ["build"] }
|
|
|
|
[features]
|
|
default = ["postgres"]
|
|
postgres = ["plume-models/postgres", "diesel/postgres"]
|
|
sqlite = ["plume-models/sqlite", "diesel/sqlite"]
|
|
|
|
[workspace]
|
|
members = ["plume-api", "plume-cli", "plume-models", "plume-common"]
|