mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
rust-gcoap: Add Rust options for small binaries (-Os)
This commit is contained in:
parent
8a61ed1caa
commit
963fa85893
@ -13,6 +13,10 @@ crate-type = ["staticlib"]
|
|||||||
# supports no unwinding), but setting it allows builds on native without using
|
# supports no unwinding), but setting it allows builds on native without using
|
||||||
# the nightly-only lang_items feature.
|
# the nightly-only lang_items feature.
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
# This is a typical set of options that helps Rust binaries stay small
|
||||||
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = "s"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
riot-wrappers = { version = "^0.7.18", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
riot-wrappers = { version = "^0.7.18", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
||||||
|
Loading…
Reference in New Issue
Block a user