]> Untitled Git - lemmy.git/commitdiff
Run cargo check for each crate with different features (ref #2284) (#2292)
authorNutomic <me@nutomic.com>
Thu, 2 Jun 2022 18:19:53 +0000 (18:19 +0000)
committerGitHub <noreply@github.com>
Thu, 2 Jun 2022 18:19:53 +0000 (18:19 +0000)
.drone.yml
crates/websocket/Cargo.toml

index 25e4518a3b1adbb0e37ccfbba53b30181aa33e60..1ee1858b4b83b71f778f54b6927446fe18abff1c 100644 (file)
@@ -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
index 37e6ff01edd71a863afec8a83860e33f52115a55..b20e3a80542f51f35c44d69aec308647dddec044 100644 (file)
@@ -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"] }