You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Rust 1.68.0, there is a default alloc error handler in no_std
that simply panics.
Before Rust 1.68.0, we had to define our own alloc error handler using
the unstable/nightly feature `#[alloc_error_handler]`. We can simply
remove this now.
As a result, we can remove the RUST_BOOTSTRAP=1 hack that enables
nightly features even on stable releases.
# enable nightly features in the stable release - needed to activate alloc_error_handler.
412
-
# see src/rust/bitbox02-rust-c/src/lib.rs.
413
-
# https://github.com/rust-lang/rust/issues/66740
414
-
RUSTC_BOOTSTRAP=1
415
411
FIRMWARE_VERSION_SHORT=${FIRMWARE_VERSION}
416
412
# only one test thread because of unsafe concurrent access to `SafeData`, `mock_sd()` and `mock_memory()`. Using mutexes instead leads to mutex poisoning and very messy output in case of a unit test failure.
0 commit comments