Skip to content

Commit e5bf566

Browse files
committed
Makefile: enforce precise nightly version for all targets
1 parent eda3d10 commit e5bf566

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ build: ## Build the project in debug mode
3535

3636
.PHONY: build-ledger
3737
build-ledger: download-circuits ## Build the ledger binary and library, requires nightly Rust
38-
@cd ledger && cargo +nightly build --release --tests
38+
@cd ledger && cargo +$(NIGHTLY_RUST_VERSION) build --release --tests
3939

4040
.PHONY: build-release
4141
build-release: ## Build the project in release mode
@@ -82,7 +82,7 @@ build-tests-webrtc: ## Build tests for WebRTC
8282

8383
.PHONY: build-vrf
8484
build-vrf: ## Build the VRF package
85-
@cd vrf && cargo +nightly build --release --tests
85+
@cd vrf && cargo +$(NIGHTLY_RUST_VERSION) build --release --tests
8686

8787
.PHONY: build-wasm
8888
build-wasm: ## Build WebAssembly node
@@ -99,11 +99,11 @@ check: ## Check code for compilation errors
9999

100100
.PHONY: check-tx-fuzzing
101101
check-tx-fuzzing: ## Check the transaction fuzzing tools, requires nightly Rust
102-
@cd tools/fuzzing && cargo +nightly check
102+
@cd tools/fuzzing && cargo +$(NIGHTLY_RUST_VERSION) check
103103

104104
.PHONY: check-format
105105
check-format: ## Check code formatting
106-
cargo +nightly fmt -- --check
106+
cargo +$(NIGHTLY_RUST_VERSION) fmt -- --check
107107
taplo format --check
108108

109109
.PHONY: check-md
@@ -172,7 +172,7 @@ download-circuits: ## Download the circuits used by Mina from GitHub
172172

173173
.PHONY: format
174174
format: ## Format code using rustfmt and taplo
175-
cargo +nightly fmt
175+
cargo +$(NIGHTLY_RUST_VERSION) fmt
176176
taplo format
177177

178178
.PHONY: format-md
@@ -236,7 +236,7 @@ test: ## Run tests
236236

237237
.PHONY: test-ledger
238238
test-ledger: build-ledger ## Run ledger tests in release mode, requires nightly Rust
239-
@cd ledger && cargo +nightly test --release -- -Z unstable-options --report-time
239+
@cd ledger && cargo +$(NIGHTLY_RUST_VERSION) test --release -- -Z unstable-options --report-time
240240

241241
.PHONY: test-p2p
242242
test-p2p: ## Run P2P tests
@@ -248,7 +248,7 @@ test-release: ## Run tests in release mode
248248

249249
.PHONY: test-vrf
250250
test-vrf: ## Run VRF tests, requires nightly Rust
251-
@cd vrf && cargo +nightly test --release -- -Z unstable-options --report-time
251+
@cd vrf && cargo +$(NIGHTLY_RUST_VERSION) test --release -- -Z unstable-options --report-time
252252

253253
.PHONY: nextest
254254
nextest: ## Run tests with cargo-nextest for faster execution
@@ -264,11 +264,11 @@ nextest-p2p: ## Run P2P tests with cargo-nextest
264264

265265
.PHONY: nextest-ledger
266266
nextest-ledger: build-ledger ## Run ledger tests with cargo-nextest, requires nightly Rust
267-
@cd ledger && cargo +nightly nextest run --release
267+
@cd ledger && cargo +$(NIGHTLY_RUST_VERSION) nextest run --release
268268

269269
.PHONY: nextest-vrf
270270
nextest-vrf: ## Run VRF tests with cargo-nextest, requires nightly Rust
271-
@cd vrf && cargo +nightly nextest run --release
271+
@cd vrf && cargo +$(NIGHTLY_RUST_VERSION) nextest run --release
272272

273273
# Docker build targets
274274

@@ -478,7 +478,7 @@ docs-rust: ## Generate Rust API documentation
478478
@echo "Generating Rust API documentation..."
479479
# Using nightly with --enable-index-page to generate workspace index
480480
# See: https://github.com/rust-lang/cargo/issues/8229
481-
@DATABASE_URL="sqlite::memory:" RUSTDOCFLAGS="--enable-index-page -Zunstable-options -D warnings" cargo +nightly doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
481+
@DATABASE_URL="sqlite::memory:" RUSTDOCFLAGS="--enable-index-page -Zunstable-options -D warnings" cargo +$(NIGHTLY_RUST_VERSION) doc --no-deps --document-private-items --workspace --exclude heartbeats-processor --lib --bins
482482
@echo "Rust documentation generated in target/doc/"
483483
@echo "Entry point: target/doc/index.html"
484484

0 commit comments

Comments
 (0)