From ccf8a80e75626b5588ad917c1c69d3d5fbab1332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Tue, 24 May 2022 18:05:37 +0200 Subject: [PATCH] Expose features in integration crates --- askama_actix/Cargo.toml | 10 ++++++++++ askama_axum/Cargo.toml | 10 ++++++++++ askama_gotham/Cargo.toml | 10 ++++++++++ askama_mendes/Cargo.toml | 10 ++++++++++ askama_rocket/Cargo.toml | 10 ++++++++++ askama_tide/Cargo.toml | 10 ++++++++++ askama_warp/Cargo.toml | 10 ++++++++++ 7 files changed, 70 insertions(+) diff --git a/askama_actix/Cargo.toml b/askama_actix/Cargo.toml index 3b9fc911c..ea9561553 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 d1f7d378b..cd2693f20 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 31a034c9a..bb08816a4 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 2182d2d87..efbff8550 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 2ef3468b9..bdace0444 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_tide/Cargo.toml b/askama_tide/Cargo.toml index 7764a69c8..328a6619c 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 2c894b21e..b1a2d5137 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"]