From 3c9f1b7048fe2dad9bbe23783258fb64ab678d63 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Sun, 14 Dec 2025 13:50:36 -0500 Subject: [PATCH] chore: bump rust toolchain to 1.94/2025-12-10 --- account/template/rust-toolchain.toml | 2 +- account/template/src/lib.rs | 1 + auth-component/template/rust-toolchain.toml | 2 +- auth-component/template/src/lib.rs | 1 + note/template/rust-toolchain.toml | 2 +- note/template/src/lib.rs | 1 + program/template/rust-toolchain.toml | 2 +- program/template/src/lib.rs | 9 ++++++++- rust-toolchain | 2 +- tx-script/template/rust-toolchain.toml | 2 +- tx-script/template/src/lib.rs | 1 + 11 files changed, 18 insertions(+), 7 deletions(-) diff --git a/account/template/rust-toolchain.toml b/account/template/rust-toolchain.toml index 47813d7..d85940e 100644 --- a/account/template/rust-toolchain.toml +++ b/account/template/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2025-07-20" +channel = "nightly-2025-12-10" components = ["rustfmt", "rust-src", "llvm-tools"] targets = ["wasm32-wasip2"] profile = "minimal" diff --git a/account/template/src/lib.rs b/account/template/src/lib.rs index 5bd48dd..18852d8 100644 --- a/account/template/src/lib.rs +++ b/account/template/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![feature(alloc_error_handler)] extern crate alloc; diff --git a/auth-component/template/rust-toolchain.toml b/auth-component/template/rust-toolchain.toml index 47813d7..d85940e 100644 --- a/auth-component/template/rust-toolchain.toml +++ b/auth-component/template/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2025-07-20" +channel = "nightly-2025-12-10" components = ["rustfmt", "rust-src", "llvm-tools"] targets = ["wasm32-wasip2"] profile = "minimal" diff --git a/auth-component/template/src/lib.rs b/auth-component/template/src/lib.rs index ffaf7ba..4799957 100644 --- a/auth-component/template/src/lib.rs +++ b/auth-component/template/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![feature(alloc_error_handler)] use miden::{component, Word}; diff --git a/note/template/rust-toolchain.toml b/note/template/rust-toolchain.toml index 47813d7..d85940e 100644 --- a/note/template/rust-toolchain.toml +++ b/note/template/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2025-07-20" +channel = "nightly-2025-12-10" components = ["rustfmt", "rust-src", "llvm-tools"] targets = ["wasm32-wasip2"] profile = "minimal" diff --git a/note/template/src/lib.rs b/note/template/src/lib.rs index 8ea7701..334b7d4 100644 --- a/note/template/src/lib.rs +++ b/note/template/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![feature(alloc_error_handler)] extern crate alloc; diff --git a/program/template/rust-toolchain.toml b/program/template/rust-toolchain.toml index 47813d7..d85940e 100644 --- a/program/template/rust-toolchain.toml +++ b/program/template/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2025-07-20" +channel = "nightly-2025-12-10" components = ["rustfmt", "rust-src", "llvm-tools"] targets = ["wasm32-wasip2"] profile = "minimal" diff --git a/program/template/src/lib.rs b/program/template/src/lib.rs index 46e8845..e434618 100644 --- a/program/template/src/lib.rs +++ b/program/template/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![feature(alloc_error_handler)] #[cfg(not(test))] #[panic_handler] @@ -6,8 +7,14 @@ fn my_panic(_info: &core::panic::PanicInfo) -> ! { loop {} } +#[cfg(not(test))] +#[alloc_error_handler] +fn my_alloc_error(_info: core::alloc::Layout) -> ! { + loop {} +} + #[no_mangle] pub fn entrypoint() -> i32 { // TODO: Implement your program logic here 0 -} \ No newline at end of file +} diff --git a/rust-toolchain b/rust-toolchain index a60f473..31e9ab4 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2025-07-20 +nightly-2025-12-10 diff --git a/tx-script/template/rust-toolchain.toml b/tx-script/template/rust-toolchain.toml index c003bcd..2ec0b5b 100644 --- a/tx-script/template/rust-toolchain.toml +++ b/tx-script/template/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2025-07-20" +channel = "nightly-2025-12-10" components = ["rustfmt", "rust-src", "llvm-tools"] targets = [ "wasm32-wasip2" ] profile = "minimal" diff --git a/tx-script/template/src/lib.rs b/tx-script/template/src/lib.rs index 2a111b9..9de6da4 100644 --- a/tx-script/template/src/lib.rs +++ b/tx-script/template/src/lib.rs @@ -1,4 +1,5 @@ #![no_std] +#![feature(alloc_error_handler)] extern crate alloc;