From 35d81b2e02c0910817d6257f68b0374c86d2cce6 Mon Sep 17 00:00:00 2001 From: Dominic Burkart <1351120+DominicBurkart@users.noreply.github.com> Date: Wed, 30 Sep 2020 18:41:50 +0200 Subject: [PATCH] remove unimplemented service feature --- Cargo.toml | 3 +-- src/lib.rs | 4 +--- turbolift_internals/src/build_project.rs | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 72622787..490a9539 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ license = "Hippocratic-2.1" [features] distributed = ["chrono", "async-std", "turbolift_macros/distributed"] -service = ["serde_json"] # todo we can optimize reqs for children with this load [dependencies] @@ -19,4 +18,4 @@ async-std = { version = "1.6", optional = true } chrono = { version = "0.4", optional = true } cached = { version = "0.19" } actix-web = { version = "3" } -serde_json = { version = "1", optional = true } \ No newline at end of file +serde_json = { version = "1" } \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 98d1c39c..77a32b39 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,11 +3,9 @@ pub use async_std; #[cfg(feature = "distributed")] pub use chrono; -#[cfg(feature = "service")] -pub use serde_json; - pub use actix_web; pub use cached; +pub use serde_json; pub use distributed_platform::{DistributionPlatform, DistributionResult}; pub use turbolift_internals::*; diff --git a/turbolift_internals/src/build_project.rs b/turbolift_internals/src/build_project.rs index 2293f336..49c5f4a0 100644 --- a/turbolift_internals/src/build_project.rs +++ b/turbolift_internals/src/build_project.rs @@ -102,7 +102,7 @@ pub fn lint(proj_path: &Path) -> anyhow::Result<()> { pub fn make_executable(proj_path: &Path, dest: Option<&Path>) -> anyhow::Result<()> { let status = Command::new("cargo") .current_dir(proj_path) - .args("build --release --features \"distributed,service\"".split(' ')) + .args("build --release --features \"distributed\"".split(' ')) .status()?; if !status.success() {