mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
rust: Set panic=abort on path towards building on stable
This commit is contained in:
parent
22e46eb700
commit
8a61ed1caa
@ -8,6 +8,12 @@ resolver = "2"
|
||||
[lib]
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[profile.release]
|
||||
# Setting the panic mode has little effect on the built code (as Rust on RIOT
|
||||
# supports no unwinding), but setting it allows builds on native without using
|
||||
# the nightly-only lang_items feature.
|
||||
panic = "abort"
|
||||
|
||||
[dependencies]
|
||||
riot-wrappers = { version = "^0.7.18", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
||||
|
||||
|
@ -8,6 +8,12 @@ resolver = "2"
|
||||
[lib]
|
||||
crate-type = ["staticlib"]
|
||||
|
||||
[profile.release]
|
||||
# Setting the panic mode has little effect on the built code (as Rust on RIOT
|
||||
# supports no unwinding), but setting it allows builds on native without using
|
||||
# the nightly-only lang_items feature.
|
||||
panic = "abort"
|
||||
|
||||
[dependencies]
|
||||
# `default-features = false` can be removed with 0.8, and enables building on stable during the 0.7 series
|
||||
riot-wrappers = { version = "0.7", features = [ "set_panic_handler" ], default-features = false }
|
||||
|
Loading…
Reference in New Issue
Block a user