Skip to content

Commit

Permalink
[rust.Makefile] Refactor cargo doc incovation to deduplicate across…
Browse files Browse the repository at this point in the history
… targets.
  • Loading branch information
lgarron committed Feb 9, 2025
1 parent c9a87d4 commit 174d699
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Makefiles/rust.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ build-rust:
cargo build --release

.PHONY: lint-rust
lint-rust:
lint-rust: test-cargo-doc
cargo clippy -- --deny warnings
cargo fmt --check
cargo doc

.PHONY: format-rust
format-rust:
Expand All @@ -42,10 +41,14 @@ setup-rust:
test-rust: test-rust-lib test-rust-examples test-rust-wasm test-rust-ffi

.PHONY: test-rust-lib
test-rust-lib:
test-rust-lib: test-cargo-doc
cargo test

.PHONY: test-cargo-doc
test-cargo-doc:
cargo doc


.PHONY: test-rust-examples
test-rust-examples: \
test-rust-example-kociemba_multiphase \
Expand Down

0 comments on commit 174d699

Please sign in to comment.