Skip to content

Commit a047e72

Browse files
committed
Makefile: add target test-doc and call it in docs-rust
1 parent c26edbe commit a047e72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ setup: setup-taplo setup-wasm ## Setup development environment
305305
test: ## Run tests
306306
cargo test
307307

308+
.PHONY: test-doc
309+
test-doc: ## Run documentation tests only
310+
@cargo test --doc
311+
308312
.PHONY: test-ledger
309313
test-ledger: build-ledger ## Run ledger tests in release mode, requires nightly Rust
310314
@cd ledger && cargo +$(NIGHTLY_RUST_VERSION) test --release -- -Z unstable-options --report-time
@@ -560,7 +564,7 @@ docs-serve-only: docs-install ## Serve the documentation website locally without
560564
@cd website && npm start -- --port $(DOCS_PORT)
561565

562566
.PHONY: docs-rust
563-
docs-rust: ## Generate Rust API documentation
567+
docs-rust: test-doc ## Generate Rust API documentation
564568
@echo "Generating Rust API documentation..."
565569
# Using nightly with --enable-index-page to generate workspace index
566570
# See: https://github.com/rust-lang/cargo/issues/8229

0 commit comments

Comments
 (0)