diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-15 13:41:43 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2020-01-15 13:48:16 +0100 |
commit | 3b8bf97cb6da128f020bb557057269661ac89fea (patch) | |
tree | df4f9a5f08fe35584ada9df69c15528e345278fe /askama_shared/Cargo.toml | |
parent | f4f82b74c65b31b88d6aacde14c47673a165cee4 (diff) | |
download | askama-3b8bf97cb6da128f020bb557057269661ac89fea.tar.gz askama-3b8bf97cb6da128f020bb557057269661ac89fea.tar.bz2 askama-3b8bf97cb6da128f020bb557057269661ac89fea.zip |
Make dependencies optional where possible
Diffstat (limited to 'askama_shared/Cargo.toml')
-rw-r--r-- | askama_shared/Cargo.toml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/askama_shared/Cargo.toml b/askama_shared/Cargo.toml index 733416a..15a3243 100644 --- a/askama_shared/Cargo.toml +++ b/askama_shared/Cargo.toml @@ -9,11 +9,18 @@ license = "MIT/Apache-2.0" workspace = ".." edition = "2018" +[features] +default = ["config", "humansize", "num-traits"] +config = ["serde", "toml"] +json = ["serde", "serde_json"] +yaml = ["serde", "serde_yaml"] + [dependencies] askama_escape = { version = "0.2.0", path = "../askama_escape" } -humansize = "1.1.0" -num-traits = "0.2.6" -serde = { version = "1.0", features = ["derive"] } +humansize = { version = "1.1.0", optional = true } +num-traits = { version = "0.2.6", optional = true } +serde = { version = "1.0", optional = true, features = ["derive"] } +serde_derive = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } serde_yaml = { version = "0.8", optional = true } -toml = "0.5" +toml = { version = "0.5", optional = true } |