Skip to content

Commit

Permalink
bug fix: make sure that distributed feature is actually being triggered
Browse files Browse the repository at this point in the history
also make sure that actix-web is available when needed
  • Loading branch information
DominicBurkart committed Sep 30, 2020
1 parent 6229f02 commit 0682c58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ readme = "README.md"
license = "Hippocratic-2.1"

[features]
distributed = ["chrono", "cached", "async-std"]
service = ["actix-web", "serde_json"]
distributed = ["chrono", "cached", "async-std", "turbolift_macros/distributed"]
service = ["serde_json"]
# todo we can optimize reqs for children with this load

[dependencies]
Expand All @@ -18,5 +18,5 @@ turbolift_internals = { path = "./turbolift_internals" }
async-std = { version = "1.6", optional = true }
chrono = { version = "0.4", optional = true }
cached = { version = "0.19", optional = true }
actix-web = { version = "3", optional = true }
actix-web = { version = "3" }
serde_json = { version = "1", optional = true }
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub use cached;
#[cfg(feature = "distributed")]
pub use chrono;

#[cfg(feature = "service")]
pub use actix_web;
#[cfg(feature = "service")]
pub use serde_json;
Expand Down
3 changes: 3 additions & 0 deletions turbolift_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ edition = "2018"
[lib]
proc-macro = true

[features]
"distributed" = []

[dependencies]
quote = "1"
proc-macro2 = "1"
Expand Down

0 comments on commit 0682c58

Please sign in to comment.