mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge #19495
19495: Rust: Update dependencies r=chrysn a=chrysn ### Contribution description This updates both the RIOT-specific and generic dependencies of Rust examples and modules. It also follows a deprecation from the G unit renaming originally done in https://github.com/RIOT-OS/RIOT/pull/19292. ### Testing procedure * Green CI should do ### Issues/PRs references Copying from one of the commits with some sed: * riot-sys: * https://github.com/RIOT-OS/rust-riot-sys/pull/26 * https://github.com/RIOT-OS/rust-riot-sys/pull/31 * https://github.com/RIOT-OS/rust-riot-sys/pull/30 * https://github.com/RIOT-OS/rust-riot-sys/pull/28 * https://github.com/RIOT-OS/rust-riot-sys/pull/27 * https://github.com/RIOT-OS/rust-riot-sys/pull/25 * https://github.com/RIOT-OS/rust-riot-sys/pull/23 * https://github.com/RIOT-OS/rust-riot-sys/pull/22 * https://github.com/RIOT-OS/rust-riot-sys/pull/21 * riot-wrappers: * https://github.com/RIOT-OS/rust-riot-wrappers/pull/36 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/50 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/48 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/47 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/44 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/45 * https://github.com/RIOT-OS/rust-riot-wrappers/pull/43 * (later, when the mistake became apparent) https://github.com/RIOT-OS/rust-riot-wrappers/pull/55 ### How to do similar PRs Updating the RIOT-related dependencies (which here also updated bindgen because the dependency of riot-sys changed): ``` $ for x in **/Cargo.lock; do cargo update --manifest-path=${x%.lock}.toml --package riot-sys --package riot-wrappers; done ``` Updating everything (should never really be needed, b/c if something has a concrete dependency change it'd say so, but dependencies generally get better over time): ``` $ for x in **/Cargo.lock; do cargo update --manifest-path=${x%.lock}.toml; done ``` Creating the commit message: ``` $ git log --first-parent --format='%s (%b)' 9c29faf55d4c14d2d7f55f8df5059c52af4e5317..e4973a6ee88427f702dac41b3dce4fd6b6b9689e | sed 's/Merges: //' | sed 's/^/ * /' ``` git shortlog unfortunately doesn't show the merges the way I prefer linking them. The versions in the command line can be taken from `git diff --text` and looking for the riot-sys or riot-wrappers line, respectively. Co-authored-by: chrysn <chrysn@fsfe.org>
This commit is contained in:
commit
8b58e55580
@ -93,7 +93,7 @@ impl registration::Drivable for &SaulLSM {
|
||||
let data = device.accel_data()
|
||||
.map_err(|_| registration::Error)?;
|
||||
// Data is in the +-2g range by default, which doesn't overflow even the i16 SAUL uses
|
||||
Ok(Phydat::new(&[data.x as _, data.y as _, data.z as _], Some(saul::Unit::G), -3))
|
||||
Ok(Phydat::new(&[data.x as _, data.y as _, data.z as _], Some(saul::Unit::GForce), -3))
|
||||
}
|
||||
}
|
||||
|
||||
|
BIN
examples/rust-gcoap/Cargo.lock
generated
BIN
examples/rust-gcoap/Cargo.lock
generated
Binary file not shown.
@ -22,7 +22,7 @@ opt-level = "s"
|
||||
riot-wrappers = { version = "^0.8", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
||||
|
||||
coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
|
||||
coap-handler-implementations = "0.3"
|
||||
coap-handler-implementations = "0.4"
|
||||
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] }
|
||||
|
||||
# While currently this exmple does not use any RIOT modules implemented in
|
||||
|
BIN
examples/rust-hello-world/Cargo.lock
generated
BIN
examples/rust-hello-world/Cargo.lock
generated
Binary file not shown.
BIN
sys/rust_riotmodules_standalone/Cargo.lock
generated
BIN
sys/rust_riotmodules_standalone/Cargo.lock
generated
Binary file not shown.
BIN
tests/rust_minimal/Cargo.lock
generated
BIN
tests/rust_minimal/Cargo.lock
generated
Binary file not shown.
Loading…
Reference in New Issue
Block a user