From 669fbcb25b6f25368b32bdfc68c7445303985ec2 Mon Sep 17 00:00:00 2001 From: Bart Massey Date: Tue, 22 Jul 2025 15:56:32 -0700 Subject: [PATCH] updated dependencies in examples/ to latest versions closes #179, closes #182 --- CHANGELOG.md | 1 + Cargo.lock | 102 +++++++++++++------ examples/magnetometer/Cargo.toml | 2 +- examples/rng-hal/Cargo.toml | 4 +- examples/serial-hal-blocking-echo/Cargo.toml | 2 +- 5 files changed, 78 insertions(+), 33 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e630e41..5172caa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Remove dead link to microbit Rust on Windows blog post in README. - Bumped MSRV to 1.81.0. - Add metadata for docs.rs +- Bumped dependencies in `examples/` to latest versions. ## [0.15.1] - 2024-08-05 diff --git a/Cargo.lock b/Cargo.lock index 190f6dd..18fe6b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,9 +104,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" [[package]] name = "bumpalo" @@ -593,7 +593,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f24b486ceef047c043c19c24669379f1049269927430c09f0444aac4685d2c2f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.1", "embedded-hal 1.0.0", "maybe-async-cfg", "nb 1.1.0", @@ -614,13 +614,37 @@ dependencies = [ "panic-halt", ] +[[package]] +name = "manyhow" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b33efb3ca6d3b07393750d4030418d594ab1139cee518f0dc88db70fec873587" +dependencies = [ + "manyhow-macros", + "proc-macro2", + "quote", + "syn 1.0.109", + "syn 2.0.89", +] + +[[package]] +name = "manyhow-macros" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46fce34d199b78b6e6073abf984c9cf5fd3e9330145a93ee0738a7443e371495" +dependencies = [ + "proc-macro-utils", + "proc-macro2", + "quote", +] + [[package]] name = "maybe-async-cfg" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e083394889336bc66a4eaf1011ffbfa74893e910f902a9f271fa624c61e1b2" +checksum = "8dbfaa67a76e2623580df07d6bb5e7956c0a4bae4b418314083a9c619bd66627" dependencies = [ - "proc-macro-error", + "manyhow", "proc-macro2", "pulldown-cmark", "quote", @@ -629,9 +653,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.7.4" +version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" [[package]] name = "microbit" @@ -700,7 +724,7 @@ dependencies = [ "nrf-usbd", "nrf51-pac", "nrf52833-pac", - "rand_core", + "rand_core 0.6.4", "void", ] @@ -831,42 +855,53 @@ dependencies = [ "syn 2.0.89", ] +[[package]] +name = "proc-macro-utils" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eeaf08a13de400bc215877b5bdc088f241b12eb42f0a548d3390dc1c56bb7071" +dependencies = [ + "proc-macro2", + "quote", + "smallvec", +] + [[package]] name = "proc-macro2" -version = "1.0.92" +version = "1.0.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" dependencies = [ "unicode-ident", ] [[package]] name = "pulldown-cmark" -version = "0.11.0" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8746739f11d39ce5ad5c2520a9b75285310dbfe78c541ccf832d38615765aec0" +checksum = "679341d22c78c6c649893cbd6c3278dcbe9fc4faa62fea3a9296ae2b50c14625" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.1", "memchr", "unicase", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] [[package]] name = "rand" -version = "0.8.5" +version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ - "rand_core", + "rand_core 0.9.3", ] [[package]] @@ -875,13 +910,19 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" + [[package]] name = "rand_pcg" -version = "0.3.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59cad018caf63deb318e5a4586d99a24424a364f40f1e5778c29aca23f4fc73e" +checksum = "b48ac3f7ffaab7fac4d2376632268aa5f89abdb55f7ebf8f4d11fffccb2320f7" dependencies = [ - "rand_core", + "rand_core 0.9.3", ] [[package]] @@ -1057,6 +1098,12 @@ dependencies = [ "panic-halt", ] +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + [[package]] name = "spin" version = "0.9.8" @@ -1162,18 +1209,15 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicase" -version = "2.7.0" +version = "2.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" -dependencies = [ - "version_check", -] +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "usb-device" diff --git a/examples/magnetometer/Cargo.toml b/examples/magnetometer/Cargo.toml index deb7be6..9d6f364 100644 --- a/examples/magnetometer/Cargo.toml +++ b/examples/magnetometer/Cargo.toml @@ -10,7 +10,7 @@ embedded-hal = "1.0.0" panic-halt = "1.0.0" defmt-rtt = "1.0.0" defmt = "1.0.1" -lsm303agr = "1.0.0" +lsm303agr = "1.1.0" [dependencies.microbit] path = "../../microbit" diff --git a/examples/rng-hal/Cargo.toml b/examples/rng-hal/Cargo.toml index 5414d70..e27d33d 100644 --- a/examples/rng-hal/Cargo.toml +++ b/examples/rng-hal/Cargo.toml @@ -12,11 +12,11 @@ defmt = "1.0.1" [dependencies.rand] default-features = false -version = "0.8.5" +version = "0.9.2" [dependencies.rand_pcg] default-features = false -version = "0.3.1" +version = "0.9.0" [dependencies.microbit] path = "../../microbit" diff --git a/examples/serial-hal-blocking-echo/Cargo.toml b/examples/serial-hal-blocking-echo/Cargo.toml index 83f18f1..e2c25d7 100644 --- a/examples/serial-hal-blocking-echo/Cargo.toml +++ b/examples/serial-hal-blocking-echo/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" cortex-m-rt = "0.7" panic-halt = "1.0.0" defmt-rtt = "1.0" -nb = "1.0.0" +nb = "1.1.0" embedded-hal = "1.0.0" embedded-io = "0.6.1"