From e77d5787e6ccb29573c1feb171f02dfc354dd0ce Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Fri, 20 Nov 2026 10:51:38 -0600 Subject: [PATCH] Run Rust make targets across the whole workspace With add_c_abi, rust/ is a workspace whose root package is the core crate. Cargo then defaults to that package alone, so make lint, test, check, and build never touched the capi crate. Pass --workspace so clippy and the tests cover it too; a project without the C ABI has a single package and builds the same as before. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- python/rust/rust/Makefile.jinja | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/rust/rust/Makefile.jinja b/python/rust/rust/Makefile.jinja index d0d1054..05ec2d8 100644 --- a/python/rust/rust/Makefile.jinja +++ b/python/rust/rust/Makefile.jinja @@ -9,11 +9,11 @@ requirements: ## install required dev dependencies develop: requirements ## install required dev dependencies build: ## build release - cargo build --release --all-features + cargo build --release --workspace --all-features .PHONY: lint lints fix format lint: ## run Clippy for linting, rustfmt for autoformat checks - cargo clippy --all-features + cargo clippy --workspace --all-features cargo fmt --all -- --check # alias lints: lint @@ -25,19 +25,19 @@ format: fix .PHONY: check checks check: - cargo check --all-features + cargo check --workspace --all-features # alias checks: check .PHONY: test tests test-ci tests-ci test: ## run the tests - cargo llvm-cov nextest --cobertura --output-path coverage.xml + cargo llvm-cov nextest --workspace --cobertura --output-path coverage.xml # alias tests: test coverage: - cargo llvm-cov nextest --lcov --output-path coverage + cargo llvm-cov nextest --workspace --lcov --output-path coverage .PHONY: dist publish dist: ## create dist