
These are only compiled with the --features admin flag so placing these alongside the normal feature dependencies is totally safe and won't increase compile times as they are not compiled in default builds. They are however downloaded so some extra overhead is spent fetching them for builds.
25 lines
627 B
TOML
25 lines
627 B
TOML
[package]
|
|
name = "clippable-server"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
rocket = { version = "0.5.0-rc.1", features = [ "json" ] }
|
|
serde = { version = "1.0", features = [ "derive" ] }
|
|
lazy_static = { version = "1.4.0" }
|
|
|
|
# Required only for builds that contain admin features
|
|
serde_json = { version = "1.0", optional = true }
|
|
base64 = { version = "0.13.0", optional = true }
|
|
|
|
|
|
[dependencies.rocket_dyn_templates]
|
|
version = "0.1.0-rc.1"
|
|
features = ["tera"]
|
|
|
|
[features]
|
|
default = []
|
|
admin = ["serde_json", "base64"]
|