diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68e33ed7..1c7958cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,9 +23,9 @@ jobs: - name: fmt run: cargo fmt --all --check - name: clippy - run: cargo clippy --workspace -- -D warnings + run: cargo clippy --workspace --features protobuf -- -D warnings - name: check - run: cargo check --workspace + run: cargo check --workspace --features protobuf test: name: test @@ -38,9 +38,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: build - run: cargo build --workspace + run: cargo build --workspace --features protobuf - name: test - run: cargo test --workspace + run: cargo test --workspace --features protobuf build: name: build diff --git a/Makefile b/Makefile index 53ad2e53..40b210b7 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ release: cargo build --release test: - cargo test --workspace + cargo test --workspace --features protobuf fmt: cargo fmt --all @@ -22,7 +22,7 @@ fmt-check: cargo fmt --all --check clippy: - cargo clippy --workspace -- -D warnings + cargo clippy --workspace --features protobuf -- -D warnings check: fmt-check clippy test diff --git a/tests/integration/Cargo.toml b/tests/integration/Cargo.toml index 406c4001..8507a90c 100644 --- a/tests/integration/Cargo.toml +++ b/tests/integration/Cargo.toml @@ -16,3 +16,6 @@ bytes = { workspace = true } ember-protocol = { workspace = true } prost-reflect = { workspace = true } tempfile = "3" + +[features] +protobuf = [] diff --git a/tests/integration/src/main.rs b/tests/integration/src/main.rs index ddc7c156..b9250156 100644 --- a/tests/integration/src/main.rs +++ b/tests/integration/src/main.rs @@ -6,5 +6,6 @@ mod cli; mod cluster; mod data_types; mod persistence; +#[cfg(feature = "protobuf")] mod proto; mod pubsub;