From: Nutomic Date: Thu, 2 Jun 2022 18:19:53 +0000 (+0000) Subject: Run cargo check for each crate with different features (ref #2284) (#2292) X-Git-Url: http://these/git/%7B%60/feeds/%7B%60%24%7BarchiveUrl%7D/?a=commitdiff_plain;h=9a458d2e4bc6efced4d00095cdf7a8852bc53505;p=lemmy.git Run cargo check for each crate with different features (ref #2284) (#2292) --- diff --git a/.drone.yml b/.drone.yml index 25e4518a..1ee1858b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,12 +25,9 @@ steps: - name: check with different features image: clux/muslrust:1.59.0 commands: - # api with minimal deps - - cargo check -p lemmy_api_common - # opentelemetry console - - cargo check --features console - # default features - - cargo check + - cargo install cargo-workspaces + - cargo workspaces exec cargo check --no-default-features + - cargo workspaces exec cargo check --all-features - name: cargo clippy image: clux/muslrust:1.59.0 diff --git a/crates/websocket/Cargo.toml b/crates/websocket/Cargo.toml index 37e6ff01..b20e3a80 100644 --- a/crates/websocket/Cargo.toml +++ b/crates/websocket/Cargo.toml @@ -14,7 +14,7 @@ doctest = false [dependencies] lemmy_utils = { version = "=0.16.5", path = "../utils" } -lemmy_api_common = { version = "=0.16.5", path = "../api_common" } +lemmy_api_common = { version = "=0.16.5", path = "../api_common", features = ["full"] } lemmy_db_schema = { version = "=0.16.5", path = "../db_schema", features = ["full"] } lemmy_db_views = { version = "=0.16.5", path = "../db_views", features = ["full"] } lemmy_db_views_actor = { version = "=0.16.5", path = "../db_views_actor", features = ["full"] }