From 599f1ad6f9d9ef6dac565b3fb0524483bb57cc0c Mon Sep 17 00:00:00 2001 From: Denys Zadorozhnyi Date: Tue, 18 Feb 2025 15:40:57 +0200 Subject: [PATCH 1/2] chore: update `cargo miden new` to use `v0.8.0` of the program template --- tools/cargo-miden/src/commands/new_project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cargo-miden/src/commands/new_project.rs b/tools/cargo-miden/src/commands/new_project.rs index 1c5fe88f..c706aaa6 100644 --- a/tools/cargo-miden/src/commands/new_project.rs +++ b/tools/cargo-miden/src/commands/new_project.rs @@ -8,7 +8,7 @@ use clap::Args; /// /// Before changing it make sure the new tag exists in the rust-templates repo and points to the /// desired commit. -const TEMPLATES_REPO_TAG: &str = "v0.7.0"; +const TEMPLATES_REPO_TAG: &str = "v0.8.0"; // This should have been an enum but I could not bend `clap` to expose variants as flags /// Project template From 8d8045aeac7419ac2f584f1a47af65736063ce1c Mon Sep 17 00:00:00 2001 From: Denys Zadorozhnyi Date: Tue, 18 Feb 2025 16:46:04 +0200 Subject: [PATCH 2/2] chore: silence rustc warning for panic_handler in examples --- examples/collatz/src/lib.rs | 1 + examples/fibonacci/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/examples/collatz/src/lib.rs b/examples/collatz/src/lib.rs index 3d12f9b0..9d1d1488 100644 --- a/examples/collatz/src/lib.rs +++ b/examples/collatz/src/lib.rs @@ -12,6 +12,7 @@ // static ALLOC: BumpAlloc = miden::BumpAlloc::new(); // Required for no-std crates +#[cfg(not(test))] #[panic_handler] fn my_panic(_info: &core::panic::PanicInfo) -> ! { loop {} diff --git a/examples/fibonacci/src/lib.rs b/examples/fibonacci/src/lib.rs index f3436a91..55a9dbe7 100644 --- a/examples/fibonacci/src/lib.rs +++ b/examples/fibonacci/src/lib.rs @@ -13,6 +13,7 @@ // Required for no-std crates #[panic_handler] +#[cfg(not(test))] fn my_panic(_info: &core::panic::PanicInfo) -> ! { loop {} }