Skip to content

Commit

Permalink
do not export async-std, we use tokio now
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicBurkart committed Oct 21, 2020
1 parent c20df83 commit 0e23825
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ readme = "README.md"
license = "Hippocratic-2.1"

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

[dependencies]
turbolift_macros = { path = "./turbolift_macros" }
turbolift_internals = { path = "./turbolift_internals" }
async-std = { version = "1.6", optional = true }
chrono = { version = "0.4", optional = true }
actix-web = { version = "3" }
serde_json = { version = "1" }
serde_json = { version = "1" }
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#[cfg(feature = "distributed")]
pub use async_std;
#[cfg(feature = "distributed")]
pub use chrono;

pub use actix_web;
Expand Down
1 change: 0 additions & 1 deletion turbolift_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ pub fn on(distribution_platform_: TokenStream, function_: TokenStream) -> TokenS
use std::time::Duration;
use turbolift::distributed_platform::DistributionPlatform;
use turbolift::DistributionResult;
use turbolift::async_std::task;

let mut platform = #distribution_platform.lock()?;

Expand Down

0 comments on commit 0e23825

Please sign in to comment.