Repository: djc/askama
Pull request #688 (2022-05-24 16:06:58)

Expose features in integration crates


Patch:
diff --git a/askama_actix/Cargo.toml b/askama_actix/Cargo.toml
index 3b9fc91..ea95615 100644
--- a/askama_actix/Cargo.toml
+++ b/askama_actix/Cargo.toml
@@ -20,3 +20,13 @@ askama = { version = "0.11.2", path = "../askama", default-features = false, fea
 actix-rt = { version = "2", default-features = false }
 actix-test = "=0.1.0-beta.13"
 bytes = { version = "1" }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_axum/Cargo.toml b/askama_axum/Cargo.toml
index d1f7d37..cd2693f 100644
--- a/askama_axum/Cargo.toml
+++ b/askama_axum/Cargo.toml
@@ -22,3 +22,13 @@ axum = { version = "0.5", default-features = false }
 hyper = { version = "0.14", features = ["full"] }
 tokio = { version = "1.0", features = ["full"] }
 tower = { version = "0.4", features = ["util"] }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_gotham/Cargo.toml b/askama_gotham/Cargo.toml
index 31a034c..bb08816 100644
--- a/askama_gotham/Cargo.toml
+++ b/askama_gotham/Cargo.toml
@@ -20,3 +20,13 @@ gotham = { version = "0.7", default-features = false }
 gotham = { version = "0.7", features = ["testing"] }
 hyper = "0.14"
 mime = "0.3"
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_mendes/Cargo.toml b/askama_mendes/Cargo.toml
index 2182d2d..efbff85 100644
--- a/askama_mendes/Cargo.toml
+++ b/askama_mendes/Cargo.toml
@@ -20,3 +20,13 @@ mendes = "0.0.64"
 async-trait = "0.1.51"
 hyper = "0.14.15"
 tokio = { version = "1.12", features = ["macros", "rt-multi-thread"] }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_rocket/Cargo.toml b/askama_rocket/Cargo.toml
index 2ef3468..bdace04 100644
--- a/askama_rocket/Cargo.toml
+++ b/askama_rocket/Cargo.toml
@@ -15,3 +15,13 @@ edition = "2018"
 [dependencies]
 askama = { version = "0.11.2", path = "../askama", default-features = false, features = ["with-rocket", "mime", "mime_guess"] }
 rocket = { version = "0.4", default-features = false }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_shared/Cargo.toml b/askama_shared/Cargo.toml
index 8affe58..0a2cb21 100644
--- a/askama_shared/Cargo.toml
+++ b/askama_shared/Cargo.toml
@@ -26,7 +26,7 @@ warp = []
 
 [dependencies]
 askama_escape = { version = "0.10.3", path = "../askama_escape" }
-comrak = { version = "0.12", optional = true, default-features = false }
+comrak = { version = "0.13", optional = true, default-features = false }
 humansize = { version = "1.1.0", optional = true }
 mime = "0.3"
 mime_guess = "2"
diff --git a/askama_tide/Cargo.toml b/askama_tide/Cargo.toml
index 7764a69..328a661 100644
--- a/askama_tide/Cargo.toml
+++ b/askama_tide/Cargo.toml
@@ -17,3 +17,13 @@ tide = { version = "0.16", default-features = false }
 
 [dev-dependencies]
 async-std = { version = "1.6.5", features = ["attributes"] }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]
diff --git a/askama_warp/Cargo.toml b/askama_warp/Cargo.toml
index 2c894b2..b1a2d51 100644
--- a/askama_warp/Cargo.toml
+++ b/askama_warp/Cargo.toml
@@ -19,3 +19,13 @@ warp = { version = "0.3", default-features = false }
 [dev-dependencies]
 tokio-test = "0.4"
 tokio = { version = "1", features = ["macros"] }
+
+[features]
+default = ["askama/default"]
+config = ["askama/config"]
+humansize = ["askama/humansize"]
+markdown = ["askama/markdown"]
+num-traits = ["askama/num-traits"]
+serde-json = ["askama/serde-json"]
+serde-yaml = ["askama/serde-yaml"]
+urlencode = ["askama/urlencode"]


Test patch:
diff --git a/testing/Cargo.toml b/testing/Cargo.toml
index bd7bbc9..77ab25e 100644
--- a/testing/Cargo.toml
+++ b/testing/Cargo.toml
@@ -13,7 +13,7 @@ markdown = ["comrak", "askama/markdown"]
 
 [dependencies]
 askama = { path = "../askama", version = "0.11.0-beta.1" }
-comrak = { version = "0.12", default-features = false, optional = true }
+comrak = { version = "0.13", default-features = false, optional = true }
 serde_json = { version = "1.0", optional = true }
 
 [dev-dependencies]