Skip to content

Commit

Permalink
Merge pull request #553 from tock/small_panic_in_release
Browse files Browse the repository at this point in the history
Enable `small_panic` in release mode
  • Loading branch information
alevy authored Jun 20, 2024
2 parents 140d7c2 + 48a371c commit f4bd533
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ libtock_platform = { path = "platform" }
libtock_proximity = { path = "apis/sensors/proximity" }
libtock_rng = { path = "apis/peripherals/rng" }
libtock_runtime = { path = "runtime" }
libtock_small_panic = { path = "panic_handlers/small_panic" }
libtock_sound_pressure = { path = "apis/sensors/sound_pressure" }
libtock_spi_controller = { path = "apis/peripherals/spi_controller" }
libtock_temperature = { path = "apis/sensors/temperature" }
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#![forbid(unsafe_code)]
#![no_std]

#[cfg(debug_assertions)]
extern crate libtock_debug_panic;
#[cfg(not(debug_assertions))]
extern crate libtock_small_panic;

pub use libtock_platform as platform;
pub use libtock_runtime as runtime;
Expand Down

0 comments on commit f4bd533

Please sign in to comment.