diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-05-18 20:32:48 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-05-18 20:35:36 +0200 |
| commit | e4fc48764491f8981e4a145a72e9b6e72df8c546 (patch) | |
| tree | cac023f3457123f2fbc7686f2f90414987eae264 /tests | |
| parent | e8b1ea14c7fb151aa5e296ca8f9724f175bdeaef (diff) | |
Add rand-core v0.9 support.
Co-Authored-By: Aurélien Jacobs <[email protected]>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rp/Cargo.toml | 1 | ||||
| -rw-r--r-- | tests/rp/src/bin/ethernet_w5100s_perf.rs | 1 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/stm32/src/bin/eth.rs | 1 | ||||
| -rw-r--r-- | tests/utils/Cargo.toml | 2 |
5 files changed, 3 insertions, 6 deletions
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index 1335aa84b..46dc820ab 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -38,7 +38,6 @@ embedded-io-async = { version = "0.6.1" } | |||
| 38 | embedded-storage = { version = "0.3" } | 38 | embedded-storage = { version = "0.3" } |
| 39 | static_cell = "2" | 39 | static_cell = "2" |
| 40 | portable-atomic = { version = "1.5", features = ["critical-section"] } | 40 | portable-atomic = { version = "1.5", features = ["critical-section"] } |
| 41 | rand = { version = "0.8.5", default-features = false } | ||
| 42 | 41 | ||
| 43 | # bootsel not currently supported on 2350 | 42 | # bootsel not currently supported on 2350 |
| 44 | [[bin]] | 43 | [[bin]] |
diff --git a/tests/rp/src/bin/ethernet_w5100s_perf.rs b/tests/rp/src/bin/ethernet_w5100s_perf.rs index ae2adfa55..89e0ad32e 100644 --- a/tests/rp/src/bin/ethernet_w5100s_perf.rs +++ b/tests/rp/src/bin/ethernet_w5100s_perf.rs | |||
| @@ -14,7 +14,6 @@ use embassy_rp::peripherals::SPI0; | |||
| 14 | use embassy_rp::spi::{Async, Config as SpiConfig, Spi}; | 14 | use embassy_rp::spi::{Async, Config as SpiConfig, Spi}; |
| 15 | use embassy_time::Delay; | 15 | use embassy_time::Delay; |
| 16 | use embedded_hal_bus::spi::ExclusiveDevice; | 16 | use embedded_hal_bus::spi::ExclusiveDevice; |
| 17 | use rand::RngCore; | ||
| 18 | use static_cell::StaticCell; | 17 | use static_cell::StaticCell; |
| 19 | use {defmt_rtt as _, panic_probe as _}; | 18 | use {defmt_rtt as _, panic_probe as _}; |
| 20 | 19 | ||
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index 3a347e279..b230e619e 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -81,8 +81,8 @@ embedded-hal-async = { version = "1.0" } | |||
| 81 | embedded-can = { version = "0.4" } | 81 | embedded-can = { version = "0.4" } |
| 82 | micromath = "2.0.0" | 82 | micromath = "2.0.0" |
| 83 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 83 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 84 | rand_core = { version = "0.6", default-features = false } | 84 | rand_core = { version = "0.9.1", default-features = false } |
| 85 | rand_chacha = { version = "0.3", default-features = false } | 85 | rand_chacha = { version = "0.9.0", default-features = false } |
| 86 | static_cell = "2" | 86 | static_cell = "2" |
| 87 | portable-atomic = { version = "1.5", features = [] } | 87 | portable-atomic = { version = "1.5", features = [] } |
| 88 | 88 | ||
diff --git a/tests/stm32/src/bin/eth.rs b/tests/stm32/src/bin/eth.rs index a7e76fd8e..bcb362b42 100644 --- a/tests/stm32/src/bin/eth.rs +++ b/tests/stm32/src/bin/eth.rs | |||
| @@ -11,7 +11,6 @@ use embassy_stm32::eth::{Ethernet, GenericPhy, PacketQueue}; | |||
| 11 | use embassy_stm32::peripherals::ETH; | 11 | use embassy_stm32::peripherals::ETH; |
| 12 | use embassy_stm32::rng::Rng; | 12 | use embassy_stm32::rng::Rng; |
| 13 | use embassy_stm32::{bind_interrupts, eth, peripherals, rng}; | 13 | use embassy_stm32::{bind_interrupts, eth, peripherals, rng}; |
| 14 | use rand_core::RngCore; | ||
| 15 | use static_cell::StaticCell; | 14 | use static_cell::StaticCell; |
| 16 | use {defmt_rtt as _, panic_probe as _}; | 15 | use {defmt_rtt as _, panic_probe as _}; |
| 17 | 16 | ||
diff --git a/tests/utils/Cargo.toml b/tests/utils/Cargo.toml index 7b54a4f52..bda55ad32 100644 --- a/tests/utils/Cargo.toml +++ b/tests/utils/Cargo.toml | |||
| @@ -4,5 +4,5 @@ version = "0.1.0" | |||
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | 5 | ||
| 6 | [dependencies] | 6 | [dependencies] |
| 7 | rand = "0.8" | 7 | rand = "0.9" |
| 8 | serial = "0.4" | 8 | serial = "0.4" |
