mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18678 from chrysn-pull-requests/rust-update-20221001
rust: Update dependencies, build and test more on stable
This commit is contained in:
commit
b31eb6b15c
@ -5,5 +5,5 @@
|
||||
# Cargo.toml, copy this file over, or just use the released versions.
|
||||
|
||||
[patch.crates-io]
|
||||
riot-sys = { git = "https://github.com/RIOT-OS/rust-riot-sys" }
|
||||
riot-wrappers = { git = "https://github.com/RIOT-OS/rust-riot-wrappers" }
|
||||
#riot-sys = { git = "https://github.com/RIOT-OS/rust-riot-sys" }
|
||||
#riot-wrappers = { git = "https://github.com/RIOT-OS/rust-riot-wrappers" }
|
||||
|
BIN
examples/rust-gcoap/Cargo.lock
generated
BIN
examples/rust-gcoap/Cargo.lock
generated
Binary file not shown.
@ -8,6 +8,16 @@ 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"
|
||||
# This is a typical set of options that helps Rust binaries stay small
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
opt-level = "s"
|
||||
|
||||
[dependencies]
|
||||
riot-wrappers = { version = "^0.7.18", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
||||
|
||||
|
BIN
examples/rust-hello-world/Cargo.lock
generated
BIN
examples/rust-hello-world/Cargo.lock
generated
Binary file not shown.
@ -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 }
|
||||
|
BIN
sys/rust_riotmodules_standalone/Cargo.lock
generated
BIN
sys/rust_riotmodules_standalone/Cargo.lock
generated
Binary file not shown.
@ -5,6 +5,10 @@ USEMODULE += shell_democommands
|
||||
|
||||
FEATURES_REQUIRED += rust_target
|
||||
|
||||
# Testing on stable to ensure that no nightly features are needed when Rust is
|
||||
# pulled in through modules.
|
||||
CARGO_CHANNEL = stable
|
||||
|
||||
# Currently unknown, something related to the LED_PORT definition that doesn't
|
||||
# pass C2Rust's transpilation
|
||||
BOARD_BLACKLIST := ek-lm4f120xl
|
||||
|
BIN
tests/rust_minimal/Cargo.lock
generated
BIN
tests/rust_minimal/Cargo.lock
generated
Binary file not shown.
@ -5,9 +5,8 @@ BASELIBS += $(APPLICATION_RUST_MODULE).module
|
||||
|
||||
FEATURES_REQUIRED += rust_target
|
||||
|
||||
# This example can, on all platforms, be built with a stable version of Rust.
|
||||
# For most advanced features (eg. when using CoAP, SAUL or the shell with
|
||||
# Rust), this needs to be set to "nightly" for the time being.
|
||||
# Testing on stable to ensure that no nightly features are needed for basic
|
||||
# Rust usage.
|
||||
CARGO_CHANNEL = stable
|
||||
|
||||
# Currently unknown, something related to the LED_PORT definition that doesn't
|
||||
|
Loading…
Reference in New Issue
Block a user