@@ -35,7 +35,7 @@ build: ## Build the project in debug mode
35
35
36
36
.PHONY : build-ledger
37
37
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
39
39
40
40
.PHONY : build-release
41
41
build-release : # # Build the project in release mode
@@ -82,7 +82,7 @@ build-tests-webrtc: ## Build tests for WebRTC
82
82
83
83
.PHONY : build-vrf
84
84
build-vrf : # # Build the VRF package
85
- @cd vrf && cargo +nightly build --release --tests
85
+ @cd vrf && cargo +$( NIGHTLY_RUST_VERSION ) build --release --tests
86
86
87
87
.PHONY : build-wasm
88
88
build-wasm : # # Build WebAssembly node
@@ -99,11 +99,11 @@ check: ## Check code for compilation errors
99
99
100
100
.PHONY : check-tx-fuzzing
101
101
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
103
103
104
104
.PHONY : check-format
105
105
check-format : # # Check code formatting
106
- cargo +nightly fmt -- --check
106
+ cargo +$( NIGHTLY_RUST_VERSION ) fmt -- --check
107
107
taplo format --check
108
108
109
109
.PHONY : check-md
@@ -172,7 +172,7 @@ download-circuits: ## Download the circuits used by Mina from GitHub
172
172
173
173
.PHONY : format
174
174
format : # # Format code using rustfmt and taplo
175
- cargo +nightly fmt
175
+ cargo +$( NIGHTLY_RUST_VERSION ) fmt
176
176
taplo format
177
177
178
178
.PHONY : format-md
@@ -236,7 +236,7 @@ test: ## Run tests
236
236
237
237
.PHONY : test-ledger
238
238
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
240
240
241
241
.PHONY : test-p2p
242
242
test-p2p : # # Run P2P tests
@@ -248,7 +248,7 @@ test-release: ## Run tests in release mode
248
248
249
249
.PHONY : test-vrf
250
250
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
252
252
253
253
.PHONY : nextest
254
254
nextest : # # Run tests with cargo-nextest for faster execution
@@ -264,11 +264,11 @@ nextest-p2p: ## Run P2P tests with cargo-nextest
264
264
265
265
.PHONY : nextest-ledger
266
266
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
268
268
269
269
.PHONY : nextest-vrf
270
270
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
272
272
273
273
# Docker build targets
274
274
@@ -478,7 +478,7 @@ docs-rust: ## Generate Rust API documentation
478
478
@echo " Generating Rust API documentation..."
479
479
# Using nightly with --enable-index-page to generate workspace index
480
480
# 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
482
482
@echo " Rust documentation generated in target/doc/"
483
483
@echo " Entry point: target/doc/index.html"
484
484
0 commit comments