diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-22 15:47:31 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-22 15:47:31 +0100 |
commit | 7a994eb95b0fa447e95d7d28a020fd30143b87b6 (patch) | |
tree | c33ce2285a171028e96732560408b1c3f6d0486a /testing/Cargo.toml | |
parent | 879832099565fa051c3877558f85a8e194dc0ce6 (diff) | |
download | askama-7a994eb95b0fa447e95d7d28a020fd30143b87b6.tar.gz askama-7a994eb95b0fa447e95d7d28a020fd30143b87b6.tar.bz2 askama-7a994eb95b0fa447e95d7d28a020fd30143b87b6.zip |
Work around conflicting dependencies for actix-web and rocket
Diffstat (limited to '')
-rw-r--r-- | testing/Cargo.toml | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/testing/Cargo.toml b/testing/Cargo.toml index 6223673..7c93783 100644 --- a/testing/Cargo.toml +++ b/testing/Cargo.toml @@ -5,13 +5,14 @@ authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] workspace = ".." [features] -default = [] -nightly = ["rocket", "rocket_codegen", "askama/with-rocket"] +default = ["actix"] +with-rocket = ["rocket", "rocket_codegen", "askama/with-rocket"] +actix = ["actix-web", "bytes", "askama/with-actix-web"] [dependencies] -actix-web = "0.7" -askama = { path = "../askama", version = "*", features = ["with-actix-web", "with-iron", "serde-json"] } -bytes = "0.4" +actix-web = { version = "0.7", optional = true } +askama = { path = "../askama", version = "*", features = ["with-iron", "serde-json"] } +bytes = { version = "0.4", optional = true } criterion = "0.2" iron = "0.6" rocket = { version = "0.3", optional = true } @@ -19,7 +20,7 @@ rocket_codegen = { version = "0.3", optional = true } serde_json = "1.0" [build-dependencies] -askama = { path = "../askama", version = "*", features = ["with-actix-web", "with-iron", "serde-json"] } +askama = { path = "../askama", version = "*", features = ["with-iron", "serde-json"] } [[bench]] name = "all" |