diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-10-26 16:47:29 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-10-26 16:47:29 +0200 |
| commit | eeb072d9cbc457892c58670ca6fefacf8c80a32b (patch) | |
| tree | 239a33833fcbe4c15cd3515d1b736afaee06c048 | |
| parent | 1b249ca72d67a4ff8491b9b548be4afe8c7c2db0 (diff) | |
Update Rust nightly.
| -rw-r--r-- | embassy-embedded-hal/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-lora/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-net/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-net/src/tcp.rs | 18 | ||||
| -rw-r--r-- | embassy-nrf/Cargo.toml | 4 | ||||
| -rw-r--r-- | embassy-nrf/src/buffered_uarte.rs | 16 | ||||
| -rw-r--r-- | embassy-rp/Cargo.toml | 4 | ||||
| -rw-r--r-- | embassy-rp/src/uart/buffered.rs | 16 | ||||
| -rw-r--r-- | embassy-stm32/Cargo.toml | 4 | ||||
| -rw-r--r-- | embassy-stm32/src/sdmmc/mod.rs | 12 | ||||
| -rw-r--r-- | embassy-stm32/src/usart/buffered.rs | 16 | ||||
| -rw-r--r-- | embassy-sync/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-sync/src/pipe.rs | 18 | ||||
| -rw-r--r-- | embassy-time/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/nrf/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/rp/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/std/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32f4/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32f7/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32h7/Cargo.toml | 4 | ||||
| -rw-r--r-- | examples/stm32l0/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32l4/Cargo.toml | 2 | ||||
| -rw-r--r-- | examples/stm32l5/Cargo.toml | 2 | ||||
| -rw-r--r-- | rust-toolchain.toml | 2 | ||||
| -rw-r--r-- | tests/rp/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 2 |
26 files changed, 74 insertions, 74 deletions
diff --git a/embassy-embedded-hal/Cargo.toml b/embassy-embedded-hal/Cargo.toml index d0be6d195..85ee856a6 100644 --- a/embassy-embedded-hal/Cargo.toml +++ b/embassy-embedded-hal/Cargo.toml | |||
| @@ -20,7 +20,7 @@ nightly = ["embedded-hal-async", "embedded-storage-async"] | |||
| 20 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } | 20 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } |
| 21 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 21 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 22 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 22 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 23 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true } | 23 | embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true } |
| 24 | embedded-storage = "0.3.0" | 24 | embedded-storage = "0.3.0" |
| 25 | embedded-storage-async = { version = "0.3.0", optional = true } | 25 | embedded-storage-async = { version = "0.3.0", optional = true } |
| 26 | nb = "1.0.0" | 26 | nb = "1.0.0" |
diff --git a/embassy-lora/Cargo.toml b/embassy-lora/Cargo.toml index ea2c3fe67..dc2004172 100644 --- a/embassy-lora/Cargo.toml +++ b/embassy-lora/Cargo.toml | |||
| @@ -32,7 +32,7 @@ embassy-time = { version = "0.1.0", path = "../embassy-time" } | |||
| 32 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } | 32 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } |
| 33 | embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32", default-features = false, optional = true } | 33 | embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32", default-features = false, optional = true } |
| 34 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 34 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 35 | embedded-hal-async = { version = "=0.1.0-alpha.2" } | 35 | embedded-hal-async = { version = "=0.1.0-alpha.3" } |
| 36 | embassy-hal-common = { version = "0.1.0", path = "../embassy-hal-common", default-features = false } | 36 | embassy-hal-common = { version = "0.1.0", path = "../embassy-hal-common", default-features = false } |
| 37 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } | 37 | futures = { version = "0.3.17", default-features = false, features = [ "async-await" ] } |
| 38 | embedded-hal = { version = "0.2", features = ["unproven"] } | 38 | embedded-hal = { version = "0.2", features = ["unproven"] } |
diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 967ef26a7..76217075a 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml | |||
| @@ -42,7 +42,7 @@ log = { version = "0.4.14", optional = true } | |||
| 42 | 42 | ||
| 43 | embassy-time = { version = "0.1.0", path = "../embassy-time" } | 43 | embassy-time = { version = "0.1.0", path = "../embassy-time" } |
| 44 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } | 44 | embassy-sync = { version = "0.1.0", path = "../embassy-sync" } |
| 45 | embedded-io = { version = "0.3.0", optional = true } | 45 | embedded-io = { version = "0.3.1", optional = true } |
| 46 | 46 | ||
| 47 | managed = { version = "0.8.0", default-features = false, features = [ "map" ] } | 47 | managed = { version = "0.8.0", default-features = false, features = [ "map" ] } |
| 48 | heapless = { version = "0.7.5", default-features = false } | 48 | heapless = { version = "0.7.5", default-features = false } |
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index f8fff3e2d..f3bd2361c 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -292,7 +292,7 @@ mod embedded_io_impls { | |||
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | impl<'d> embedded_io::asynch::Read for TcpSocket<'d> { | 294 | impl<'d> embedded_io::asynch::Read for TcpSocket<'d> { |
| 295 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 295 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 296 | where | 296 | where |
| 297 | Self: 'a; | 297 | Self: 'a; |
| 298 | 298 | ||
| @@ -302,7 +302,7 @@ mod embedded_io_impls { | |||
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | impl<'d> embedded_io::asynch::Write for TcpSocket<'d> { | 304 | impl<'d> embedded_io::asynch::Write for TcpSocket<'d> { |
| 305 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 305 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 306 | where | 306 | where |
| 307 | Self: 'a; | 307 | Self: 'a; |
| 308 | 308 | ||
| @@ -310,7 +310,7 @@ mod embedded_io_impls { | |||
| 310 | self.io.write(buf) | 310 | self.io.write(buf) |
| 311 | } | 311 | } |
| 312 | 312 | ||
| 313 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 313 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 314 | where | 314 | where |
| 315 | Self: 'a; | 315 | Self: 'a; |
| 316 | 316 | ||
| @@ -324,7 +324,7 @@ mod embedded_io_impls { | |||
| 324 | } | 324 | } |
| 325 | 325 | ||
| 326 | impl<'d> embedded_io::asynch::Read for TcpReader<'d> { | 326 | impl<'d> embedded_io::asynch::Read for TcpReader<'d> { |
| 327 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 327 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 328 | where | 328 | where |
| 329 | Self: 'a; | 329 | Self: 'a; |
| 330 | 330 | ||
| @@ -338,7 +338,7 @@ mod embedded_io_impls { | |||
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | impl<'d> embedded_io::asynch::Write for TcpWriter<'d> { | 340 | impl<'d> embedded_io::asynch::Write for TcpWriter<'d> { |
| 341 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 341 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 342 | where | 342 | where |
| 343 | Self: 'a; | 343 | Self: 'a; |
| 344 | 344 | ||
| @@ -346,7 +346,7 @@ mod embedded_io_impls { | |||
| 346 | self.io.write(buf) | 346 | self.io.write(buf) |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 349 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 350 | where | 350 | where |
| 351 | Self: 'a; | 351 | Self: 'a; |
| 352 | 352 | ||
| @@ -445,7 +445,7 @@ pub mod client { | |||
| 445 | impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Read | 445 | impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Read |
| 446 | for TcpConnection<'d, N, TX_SZ, RX_SZ> | 446 | for TcpConnection<'d, N, TX_SZ, RX_SZ> |
| 447 | { | 447 | { |
| 448 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 448 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 449 | where | 449 | where |
| 450 | Self: 'a; | 450 | Self: 'a; |
| 451 | 451 | ||
| @@ -457,7 +457,7 @@ pub mod client { | |||
| 457 | impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Write | 457 | impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> embedded_io::asynch::Write |
| 458 | for TcpConnection<'d, N, TX_SZ, RX_SZ> | 458 | for TcpConnection<'d, N, TX_SZ, RX_SZ> |
| 459 | { | 459 | { |
| 460 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 460 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 461 | where | 461 | where |
| 462 | Self: 'a; | 462 | Self: 'a; |
| 463 | 463 | ||
| @@ -465,7 +465,7 @@ pub mod client { | |||
| 465 | self.socket.write(buf) | 465 | self.socket.write(buf) |
| 466 | } | 466 | } |
| 467 | 467 | ||
| 468 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 468 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 469 | where | 469 | where |
| 470 | Self: 'a; | 470 | Self: 'a; |
| 471 | 471 | ||
diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index dca5fd1bc..67b6bec40 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml | |||
| @@ -75,8 +75,8 @@ embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver", optiona | |||
| 75 | 75 | ||
| 76 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 76 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 77 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} | 77 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} |
| 78 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true} | 78 | embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true} |
| 79 | embedded-io = { version = "0.3.0", features = ["async"], optional = true } | 79 | embedded-io = { version = "0.3.1", features = ["async"], optional = true } |
| 80 | 80 | ||
| 81 | defmt = { version = "0.3", optional = true } | 81 | defmt = { version = "0.3", optional = true } |
| 82 | log = { version = "0.4.14", optional = true } | 82 | log = { version = "0.4.14", optional = true } |
diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index 6e85a159f..9c8fe65f4 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs | |||
| @@ -341,7 +341,7 @@ impl<'u, 'd, U: UarteInstance, T: TimerInstance> embedded_io::Io for BufferedUar | |||
| 341 | } | 341 | } |
| 342 | 342 | ||
| 343 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read for BufferedUarte<'d, U, T> { | 343 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read for BufferedUarte<'d, U, T> { |
| 344 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 344 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 345 | where | 345 | where |
| 346 | Self: 'a; | 346 | Self: 'a; |
| 347 | 347 | ||
| @@ -351,7 +351,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read for Buffe | |||
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read for BufferedUarteRx<'u, 'd, U, T> { | 353 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read for BufferedUarteRx<'u, 'd, U, T> { |
| 354 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 354 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 355 | where | 355 | where |
| 356 | Self: 'a; | 356 | Self: 'a; |
| 357 | 357 | ||
| @@ -361,7 +361,7 @@ impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Read f | |||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead for BufferedUarte<'d, U, T> { | 363 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead for BufferedUarte<'d, U, T> { |
| 364 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 364 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 365 | where | 365 | where |
| 366 | Self: 'a; | 366 | Self: 'a; |
| 367 | 367 | ||
| @@ -375,7 +375,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead for Bu | |||
| 375 | } | 375 | } |
| 376 | 376 | ||
| 377 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead for BufferedUarteRx<'u, 'd, U, T> { | 377 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead for BufferedUarteRx<'u, 'd, U, T> { |
| 378 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 378 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 379 | where | 379 | where |
| 380 | Self: 'a; | 380 | Self: 'a; |
| 381 | 381 | ||
| @@ -389,7 +389,7 @@ impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRea | |||
| 389 | } | 389 | } |
| 390 | 390 | ||
| 391 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for BufferedUarte<'d, U, T> { | 391 | impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for BufferedUarte<'d, U, T> { |
| 392 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 392 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 393 | where | 393 | where |
| 394 | Self: 'a; | 394 | Self: 'a; |
| 395 | 395 | ||
| @@ -397,7 +397,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for Buff | |||
| 397 | self.inner_write(buf) | 397 | self.inner_write(buf) |
| 398 | } | 398 | } |
| 399 | 399 | ||
| 400 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 400 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 401 | where | 401 | where |
| 402 | Self: 'a; | 402 | Self: 'a; |
| 403 | 403 | ||
| @@ -407,7 +407,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for Buff | |||
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for BufferedUarteTx<'u, 'd, U, T> { | 409 | impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write for BufferedUarteTx<'u, 'd, U, T> { |
| 410 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 410 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 411 | where | 411 | where |
| 412 | Self: 'a; | 412 | Self: 'a; |
| 413 | 413 | ||
| @@ -415,7 +415,7 @@ impl<'u, 'd: 'u, U: UarteInstance, T: TimerInstance> embedded_io::asynch::Write | |||
| 415 | self.inner.inner_write(buf) | 415 | self.inner.inner_write(buf) |
| 416 | } | 416 | } |
| 417 | 417 | ||
| 418 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 418 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 419 | where | 419 | where |
| 420 | Self: 'a; | 420 | Self: 'a; |
| 421 | 421 | ||
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index c56858415..d2196be76 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -53,12 +53,12 @@ cortex-m = "0.7.6" | |||
| 53 | critical-section = "1.1" | 53 | critical-section = "1.1" |
| 54 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 54 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 55 | chrono = { version = "0.4", default-features = false, optional = true } | 55 | chrono = { version = "0.4", default-features = false, optional = true } |
| 56 | embedded-io = { version = "0.3.0", features = ["async"], optional = true } | 56 | embedded-io = { version = "0.3.1", features = ["async"], optional = true } |
| 57 | 57 | ||
| 58 | rp2040-pac2 = { git = "https://github.com/embassy-rs/rp2040-pac2", rev="017e3c9007b2d3b6965f0d85b5bf8ce3fa6d7364", features = ["rt"] } | 58 | rp2040-pac2 = { git = "https://github.com/embassy-rs/rp2040-pac2", rev="017e3c9007b2d3b6965f0d85b5bf8ce3fa6d7364", features = ["rt"] } |
| 59 | #rp2040-pac2 = { path = "../../rp2040-pac2", features = ["rt"] } | 59 | #rp2040-pac2 = { path = "../../rp2040-pac2", features = ["rt"] } |
| 60 | 60 | ||
| 61 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 61 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 62 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} | 62 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} |
| 63 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true} | 63 | embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true} |
| 64 | embedded-hal-nb = { version = "=1.0.0-alpha.1", optional = true} | 64 | embedded-hal-nb = { version = "=1.0.0-alpha.1", optional = true} |
diff --git a/embassy-rp/src/uart/buffered.rs b/embassy-rp/src/uart/buffered.rs index 87e16f0eb..4f0a55532 100644 --- a/embassy-rp/src/uart/buffered.rs +++ b/embassy-rp/src/uart/buffered.rs | |||
| @@ -355,7 +355,7 @@ impl<'d, T: Instance> embedded_io::Io for BufferedUartTx<'d, T> { | |||
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUart<'d, T> { | 357 | impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUart<'d, T> { |
| 358 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 358 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 359 | where | 359 | where |
| 360 | Self: 'a; | 360 | Self: 'a; |
| 361 | 361 | ||
| @@ -376,7 +376,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUart<'d, T> { | |||
| 376 | } | 376 | } |
| 377 | 377 | ||
| 378 | impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUartRx<'d, T> { | 378 | impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUartRx<'d, T> { |
| 379 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 379 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 380 | where | 380 | where |
| 381 | Self: 'a; | 381 | Self: 'a; |
| 382 | 382 | ||
| @@ -397,7 +397,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::Read for BufferedUartRx<'d, T> { | |||
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUart<'d, T> { | 399 | impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUart<'d, T> { |
| 400 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 400 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 401 | where | 401 | where |
| 402 | Self: 'a; | 402 | Self: 'a; |
| 403 | 403 | ||
| @@ -419,7 +419,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUart<'d, T> | |||
| 419 | } | 419 | } |
| 420 | 420 | ||
| 421 | impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUartRx<'d, T> { | 421 | impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUartRx<'d, T> { |
| 422 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 422 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 423 | where | 423 | where |
| 424 | Self: 'a; | 424 | Self: 'a; |
| 425 | 425 | ||
| @@ -441,7 +441,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::BufRead for BufferedUartRx<'d, T | |||
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUart<'d, T> { | 443 | impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUart<'d, T> { |
| 444 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 444 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 445 | where | 445 | where |
| 446 | Self: 'a; | 446 | Self: 'a; |
| 447 | 447 | ||
| @@ -455,7 +455,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUart<'d, T> { | |||
| 455 | }) | 455 | }) |
| 456 | } | 456 | } |
| 457 | 457 | ||
| 458 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 458 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 459 | where | 459 | where |
| 460 | Self: 'a; | 460 | Self: 'a; |
| 461 | 461 | ||
| @@ -465,7 +465,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUart<'d, T> { | |||
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUartTx<'d, T> { | 467 | impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUartTx<'d, T> { |
| 468 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 468 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 469 | where | 469 | where |
| 470 | Self: 'a; | 470 | Self: 'a; |
| 471 | 471 | ||
| @@ -479,7 +479,7 @@ impl<'d, T: Instance + 'd> embedded_io::asynch::Write for BufferedUartTx<'d, T> | |||
| 479 | }) | 479 | }) |
| 480 | } | 480 | } |
| 481 | 481 | ||
| 482 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 482 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 483 | where | 483 | where |
| 484 | Self: 'a; | 484 | Self: 'a; |
| 485 | 485 | ||
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 9194ae788..0b88e89c9 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml | |||
| @@ -44,7 +44,7 @@ embassy-usb-driver = {version = "0.1.0", path = "../embassy-usb-driver", optiona | |||
| 44 | 44 | ||
| 45 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } | 45 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] } |
| 46 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} | 46 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} |
| 47 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true} | 47 | embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true} |
| 48 | embedded-hal-nb = { version = "=1.0.0-alpha.1", optional = true} | 48 | embedded-hal-nb = { version = "=1.0.0-alpha.1", optional = true} |
| 49 | 49 | ||
| 50 | embedded-storage = "0.3.0" | 50 | embedded-storage = "0.3.0" |
| @@ -67,7 +67,7 @@ nb = "1.0.0" | |||
| 67 | stm32-fmc = "0.2.4" | 67 | stm32-fmc = "0.2.4" |
| 68 | seq-macro = "0.3.0" | 68 | seq-macro = "0.3.0" |
| 69 | cfg-if = "1.0.0" | 69 | cfg-if = "1.0.0" |
| 70 | embedded-io = { version = "0.3.0", features = ["async"], optional = true } | 70 | embedded-io = { version = "0.3.1", features = ["async"], optional = true } |
| 71 | 71 | ||
| 72 | [build-dependencies] | 72 | [build-dependencies] |
| 73 | proc-macro2 = "1.0.36" | 73 | proc-macro2 = "1.0.36" |
diff --git a/embassy-stm32/src/sdmmc/mod.rs b/embassy-stm32/src/sdmmc/mod.rs index a8bc6385f..c91f3c8bf 100644 --- a/embassy-stm32/src/sdmmc/mod.rs +++ b/embassy-stm32/src/sdmmc/mod.rs | |||
| @@ -1534,14 +1534,14 @@ mod sdmmc_rs { | |||
| 1534 | 1534 | ||
| 1535 | impl<'d, T: Instance, P: Pins<T>> BlockDevice for Sdmmc<'d, T, P> { | 1535 | impl<'d, T: Instance, P: Pins<T>> BlockDevice for Sdmmc<'d, T, P> { |
| 1536 | type Error = Error; | 1536 | type Error = Error; |
| 1537 | type ReadFuture<'a> | 1537 | |
| 1538 | type ReadFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a | ||
| 1538 | where | 1539 | where |
| 1539 | Self: 'a, | 1540 | Self: 'a; |
| 1540 | = impl Future<Output = Result<(), Self::Error>> + 'a; | 1541 | |
| 1541 | type WriteFuture<'a> | 1542 | type WriteFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 1542 | where | 1543 | where |
| 1543 | Self: 'a, | 1544 | Self: 'a; |
| 1544 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 1545 | 1545 | ||
| 1546 | fn read<'a>( | 1546 | fn read<'a>( |
| 1547 | &'a mut self, | 1547 | &'a mut self, |
diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs index 2a711bc06..c30bbc20a 100644 --- a/embassy-stm32/src/usart/buffered.rs +++ b/embassy-stm32/src/usart/buffered.rs | |||
| @@ -283,7 +283,7 @@ impl<'u, 'd, T: BasicInstance> embedded_io::Io for BufferedUartTx<'u, 'd, T> { | |||
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | impl<'d, T: BasicInstance> embedded_io::asynch::Read for BufferedUart<'d, T> { | 285 | impl<'d, T: BasicInstance> embedded_io::asynch::Read for BufferedUart<'d, T> { |
| 286 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 286 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 287 | where | 287 | where |
| 288 | Self: 'a; | 288 | Self: 'a; |
| 289 | 289 | ||
| @@ -293,7 +293,7 @@ impl<'d, T: BasicInstance> embedded_io::asynch::Read for BufferedUart<'d, T> { | |||
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Read for BufferedUartRx<'u, 'd, T> { | 295 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Read for BufferedUartRx<'u, 'd, T> { |
| 296 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 296 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 297 | where | 297 | where |
| 298 | Self: 'a; | 298 | Self: 'a; |
| 299 | 299 | ||
| @@ -303,7 +303,7 @@ impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Read for BufferedUartRx<'u, | |||
| 303 | } | 303 | } |
| 304 | 304 | ||
| 305 | impl<'d, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUart<'d, T> { | 305 | impl<'d, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUart<'d, T> { |
| 306 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 306 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 307 | where | 307 | where |
| 308 | Self: 'a; | 308 | Self: 'a; |
| 309 | 309 | ||
| @@ -317,7 +317,7 @@ impl<'d, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUart<'d, T> | |||
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUartRx<'u, 'd, T> { | 319 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUartRx<'u, 'd, T> { |
| 320 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> | 320 | type FillBufFuture<'a> = impl Future<Output = Result<&'a [u8], Self::Error>> + 'a |
| 321 | where | 321 | where |
| 322 | Self: 'a; | 322 | Self: 'a; |
| 323 | 323 | ||
| @@ -331,7 +331,7 @@ impl<'u, 'd, T: BasicInstance> embedded_io::asynch::BufRead for BufferedUartRx<' | |||
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | impl<'d, T: BasicInstance> embedded_io::asynch::Write for BufferedUart<'d, T> { | 333 | impl<'d, T: BasicInstance> embedded_io::asynch::Write for BufferedUart<'d, T> { |
| 334 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 334 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 335 | where | 335 | where |
| 336 | Self: 'a; | 336 | Self: 'a; |
| 337 | 337 | ||
| @@ -339,7 +339,7 @@ impl<'d, T: BasicInstance> embedded_io::asynch::Write for BufferedUart<'d, T> { | |||
| 339 | self.inner_write(buf) | 339 | self.inner_write(buf) |
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 342 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 343 | where | 343 | where |
| 344 | Self: 'a; | 344 | Self: 'a; |
| 345 | 345 | ||
| @@ -349,7 +349,7 @@ impl<'d, T: BasicInstance> embedded_io::asynch::Write for BufferedUart<'d, T> { | |||
| 349 | } | 349 | } |
| 350 | 350 | ||
| 351 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Write for BufferedUartTx<'u, 'd, T> { | 351 | impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Write for BufferedUartTx<'u, 'd, T> { |
| 352 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 352 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 353 | where | 353 | where |
| 354 | Self: 'a; | 354 | Self: 'a; |
| 355 | 355 | ||
| @@ -357,7 +357,7 @@ impl<'u, 'd, T: BasicInstance> embedded_io::asynch::Write for BufferedUartTx<'u, | |||
| 357 | self.inner.inner_write(buf) | 357 | self.inner.inner_write(buf) |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 360 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 361 | where | 361 | where |
| 362 | Self: 'a; | 362 | Self: 'a; |
| 363 | 363 | ||
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 584d5ba9f..cd6ff07db 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml | |||
| @@ -32,7 +32,7 @@ atomic-polyfill = "1.0.1" | |||
| 32 | critical-section = "1.1" | 32 | critical-section = "1.1" |
| 33 | heapless = "0.7.5" | 33 | heapless = "0.7.5" |
| 34 | cfg-if = "1.0.0" | 34 | cfg-if = "1.0.0" |
| 35 | embedded-io = "0.3.0" | 35 | embedded-io = "0.3.1" |
| 36 | 36 | ||
| 37 | [dev-dependencies] | 37 | [dev-dependencies] |
| 38 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } | 38 | futures-executor = { version = "0.3.17", features = [ "thread-pool" ] } |
diff --git a/embassy-sync/src/pipe.rs b/embassy-sync/src/pipe.rs index 7d64b648e..cd577f34f 100644 --- a/embassy-sync/src/pipe.rs +++ b/embassy-sync/src/pipe.rs | |||
| @@ -361,7 +361,7 @@ mod io_impls { | |||
| 361 | } | 361 | } |
| 362 | 362 | ||
| 363 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Pipe<M, N> { | 363 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Pipe<M, N> { |
| 364 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 364 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 365 | where | 365 | where |
| 366 | Self: 'a; | 366 | Self: 'a; |
| 367 | 367 | ||
| @@ -371,7 +371,7 @@ mod io_impls { | |||
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Pipe<M, N> { | 373 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Pipe<M, N> { |
| 374 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 374 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 375 | where | 375 | where |
| 376 | Self: 'a; | 376 | Self: 'a; |
| 377 | 377 | ||
| @@ -379,7 +379,7 @@ mod io_impls { | |||
| 379 | Pipe::write(self, buf).map(Ok) | 379 | Pipe::write(self, buf).map(Ok) |
| 380 | } | 380 | } |
| 381 | 381 | ||
| 382 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 382 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 383 | where | 383 | where |
| 384 | Self: 'a; | 384 | Self: 'a; |
| 385 | 385 | ||
| @@ -393,7 +393,7 @@ mod io_impls { | |||
| 393 | } | 393 | } |
| 394 | 394 | ||
| 395 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for &Pipe<M, N> { | 395 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for &Pipe<M, N> { |
| 396 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 396 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 397 | where | 397 | where |
| 398 | Self: 'a; | 398 | Self: 'a; |
| 399 | 399 | ||
| @@ -403,7 +403,7 @@ mod io_impls { | |||
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for &Pipe<M, N> { | 405 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for &Pipe<M, N> { |
| 406 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 406 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 407 | where | 407 | where |
| 408 | Self: 'a; | 408 | Self: 'a; |
| 409 | 409 | ||
| @@ -411,7 +411,7 @@ mod io_impls { | |||
| 411 | Pipe::write(self, buf).map(Ok) | 411 | Pipe::write(self, buf).map(Ok) |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 414 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 415 | where | 415 | where |
| 416 | Self: 'a; | 416 | Self: 'a; |
| 417 | 417 | ||
| @@ -425,7 +425,7 @@ mod io_impls { | |||
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Reader<'_, M, N> { | 427 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Read for Reader<'_, M, N> { |
| 428 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 428 | type ReadFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 429 | where | 429 | where |
| 430 | Self: 'a; | 430 | Self: 'a; |
| 431 | 431 | ||
| @@ -439,7 +439,7 @@ mod io_impls { | |||
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Writer<'_, M, N> { | 441 | impl<M: RawMutex, const N: usize> embedded_io::asynch::Write for Writer<'_, M, N> { |
| 442 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> | 442 | type WriteFuture<'a> = impl Future<Output = Result<usize, Self::Error>> + 'a |
| 443 | where | 443 | where |
| 444 | Self: 'a; | 444 | Self: 'a; |
| 445 | 445 | ||
| @@ -447,7 +447,7 @@ mod io_impls { | |||
| 447 | Writer::write(self, buf).map(Ok) | 447 | Writer::write(self, buf).map(Ok) |
| 448 | } | 448 | } |
| 449 | 449 | ||
| 450 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> | 450 | type FlushFuture<'a> = impl Future<Output = Result<(), Self::Error>> + 'a |
| 451 | where | 451 | where |
| 452 | Self: 'a; | 452 | Self: 'a; |
| 453 | 453 | ||
diff --git a/embassy-time/Cargo.toml b/embassy-time/Cargo.toml index c51a71d01..0fd4645a6 100644 --- a/embassy-time/Cargo.toml +++ b/embassy-time/Cargo.toml | |||
| @@ -107,7 +107,7 @@ log = { version = "0.4.14", optional = true } | |||
| 107 | 107 | ||
| 108 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } | 108 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6" } |
| 109 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} | 109 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9", optional = true} |
| 110 | embedded-hal-async = { version = "=0.1.0-alpha.2", optional = true} | 110 | embedded-hal-async = { version = "=0.1.0-alpha.3", optional = true} |
| 111 | 111 | ||
| 112 | futures-util = { version = "0.3.17", default-features = false } | 112 | futures-util = { version = "0.3.17", default-features = false } |
| 113 | embassy-macros = { version = "0.1.0", path = "../embassy-macros"} | 113 | embassy-macros = { version = "0.1.0", path = "../embassy-macros"} |
diff --git a/examples/nrf/Cargo.toml b/examples/nrf/Cargo.toml index 6949042e2..c633f82f5 100644 --- a/examples/nrf/Cargo.toml +++ b/examples/nrf/Cargo.toml | |||
| @@ -17,7 +17,7 @@ embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["de | |||
| 17 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] } | 17 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] } |
| 18 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"], optional = true } | 18 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "pool-16"], optional = true } |
| 19 | embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"], optional = true } | 19 | embassy-usb = { version = "0.1.0", path = "../../embassy-usb", features = ["defmt"], optional = true } |
| 20 | embedded-io = "0.3.0" | 20 | embedded-io = "0.3.1" |
| 21 | embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx126x", "time", "defmt"], optional = true } | 21 | embassy-lora = { version = "0.1.0", path = "../../embassy-lora", features = ["sx126x", "time", "defmt"], optional = true } |
| 22 | 22 | ||
| 23 | lorawan-device = { version = "0.8.0", default-features = false, features = ["async"], optional = true } | 23 | lorawan-device = { version = "0.8.0", default-features = false, features = ["async"], optional = true } |
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml index 747dde515..ec9896b77 100644 --- a/examples/rp/Cargo.toml +++ b/examples/rp/Cargo.toml | |||
| @@ -28,8 +28,8 @@ display-interface = "0.4.1" | |||
| 28 | byte-slice-cast = { version = "1.2.0", default-features = false } | 28 | byte-slice-cast = { version = "1.2.0", default-features = false } |
| 29 | 29 | ||
| 30 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 30 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 31 | embedded-hal-async = { version = "0.1.0-alpha.1" } | 31 | embedded-hal-async = { version = "0.1.0-alpha.3" } |
| 32 | embedded-io = { version = "0.3.0", features = ["async", "defmt"] } | 32 | embedded-io = { version = "0.3.1", features = ["async", "defmt"] } |
| 33 | static_cell = "1.0.0" | 33 | static_cell = "1.0.0" |
| 34 | 34 | ||
| 35 | [profile.release] | 35 | [profile.release] |
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index b9bd1e718..790258382 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml | |||
| @@ -9,7 +9,7 @@ embassy-sync = { version = "0.1.0", path = "../../embassy-sync", features = ["lo | |||
| 9 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["log", "std", "nightly", "integrated-timers"] } | 9 | embassy-executor = { version = "0.1.0", path = "../../embassy-executor", features = ["log", "std", "nightly", "integrated-timers"] } |
| 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["log", "std", "nightly"] } | 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["log", "std", "nightly"] } |
| 11 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features=[ "std", "nightly", "log", "medium-ethernet", "tcp", "udp", "dhcpv4", "pool-16"] } | 11 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features=[ "std", "nightly", "log", "medium-ethernet", "tcp", "udp", "dhcpv4", "pool-16"] } |
| 12 | embedded-io = { version = "0.3.0", features = ["async", "std", "futures"] } | 12 | embedded-io = { version = "0.3.1", features = ["async", "std", "futures"] } |
| 13 | critical-section = { version = "1.1", features = ["std"] } | 13 | critical-section = { version = "1.1", features = ["std"] } |
| 14 | 14 | ||
| 15 | async-io = "1.6.0" | 15 | async-io = "1.6.0" |
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml index 6d4f09fba..b05457eaa 100644 --- a/examples/stm32f4/Cargo.toml +++ b/examples/stm32f4/Cargo.toml | |||
| @@ -17,7 +17,7 @@ defmt-rtt = "0.3" | |||
| 17 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | 17 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } |
| 18 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 19 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 20 | embedded-io = "0.3.0" | 20 | embedded-io = "0.3.1" |
| 21 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 21 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 22 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 22 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 23 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { version = "0.7.5", default-features = false } |
diff --git a/examples/stm32f7/Cargo.toml b/examples/stm32f7/Cargo.toml index dad92c0fc..b14afd2fe 100644 --- a/examples/stm32f7/Cargo.toml +++ b/examples/stm32f7/Cargo.toml | |||
| @@ -10,7 +10,7 @@ embassy-executor = { version = "0.1.0", path = "../../embassy-executor", feature | |||
| 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } | 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } |
| 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-any", "exti"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "net", "stm32f767zi", "unstable-pac", "time-driver-any", "exti"] } |
| 12 | embassy-net = { path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] } | 12 | embassy-net = { path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet", "pool-16"] } |
| 13 | embedded-io = { version = "0.3.0", features = ["async"] } | 13 | embedded-io = { version = "0.3.1", features = ["async"] } |
| 14 | 14 | ||
| 15 | defmt = "0.3" | 15 | defmt = "0.3" |
| 16 | defmt-rtt = "0.3" | 16 | defmt-rtt = "0.3" |
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml index 1a05b9ecb..0dccff6e8 100644 --- a/examples/stm32h7/Cargo.toml +++ b/examples/stm32h7/Cargo.toml | |||
| @@ -10,7 +10,7 @@ embassy-executor = { version = "0.1.0", path = "../../embassy-executor", feature | |||
| 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "unstable-traits", "tick-hz-32_768"] } | 10 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "unstable-traits", "tick-hz-32_768"] } |
| 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32h743bi", "net", "time-driver-any", "exti", "unstable-pac", "unstable-traits"] } | 11 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "stm32h743bi", "net", "time-driver-any", "exti", "unstable-pac", "unstable-traits"] } |
| 12 | embassy-net = { path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet", "pool-16", "unstable-traits"] } | 12 | embassy-net = { path = "../../embassy-net", features = ["defmt", "nightly", "tcp", "dhcpv4", "medium-ethernet", "pool-16", "unstable-traits"] } |
| 13 | embedded-io = { version = "0.3.0", features = ["async"] } | 13 | embedded-io = { version = "0.3.1", features = ["async"] } |
| 14 | 14 | ||
| 15 | defmt = "0.3" | 15 | defmt = "0.3" |
| 16 | defmt-rtt = "0.3" | 16 | defmt-rtt = "0.3" |
| @@ -19,7 +19,7 @@ cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | |||
| 19 | cortex-m-rt = "0.7.0" | 19 | cortex-m-rt = "0.7.0" |
| 20 | embedded-hal = "0.2.6" | 20 | embedded-hal = "0.2.6" |
| 21 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 21 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 22 | embedded-hal-async = { version = "=0.1.0-alpha.2" } | 22 | embedded-hal-async = { version = "=0.1.0-alpha.3" } |
| 23 | embedded-nal-async = "0.2.0" | 23 | embedded-nal-async = "0.2.0" |
| 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
diff --git a/examples/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml index 7e1120f48..8b00773be 100644 --- a/examples/stm32l0/Cargo.toml +++ b/examples/stm32l0/Cargo.toml | |||
| @@ -22,7 +22,7 @@ defmt = "0.3" | |||
| 22 | defmt-rtt = "0.3" | 22 | defmt-rtt = "0.3" |
| 23 | 23 | ||
| 24 | embedded-storage = "0.3.0" | 24 | embedded-storage = "0.3.0" |
| 25 | embedded-io = "0.3.0" | 25 | embedded-io = "0.3.1" |
| 26 | 26 | ||
| 27 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | 27 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } |
| 28 | cortex-m-rt = "0.7.0" | 28 | cortex-m-rt = "0.7.0" |
diff --git a/examples/stm32l4/Cargo.toml b/examples/stm32l4/Cargo.toml index 657605ebe..83d456b26 100644 --- a/examples/stm32l4/Cargo.toml +++ b/examples/stm32l4/Cargo.toml | |||
| @@ -20,7 +20,7 @@ cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | |||
| 20 | cortex-m-rt = "0.7.0" | 20 | cortex-m-rt = "0.7.0" |
| 21 | embedded-hal = "0.2.6" | 21 | embedded-hal = "0.2.6" |
| 22 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 22 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 23 | embedded-hal-async = { version = "=0.1.0-alpha.2" } | 23 | embedded-hal-async = { version = "=0.1.0-alpha.3" } |
| 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 24 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 25 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 26 | heapless = { version = "0.7.5", default-features = false } | 26 | heapless = { version = "0.7.5", default-features = false } |
diff --git a/examples/stm32l5/Cargo.toml b/examples/stm32l5/Cargo.toml index 63eac3ed2..848723f8b 100644 --- a/examples/stm32l5/Cargo.toml +++ b/examples/stm32l5/Cargo.toml | |||
| @@ -26,5 +26,5 @@ embedded-hal = "0.2.6" | |||
| 26 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 26 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 27 | heapless = { version = "0.7.5", default-features = false } | 27 | heapless = { version = "0.7.5", default-features = false } |
| 28 | rand_core = { version = "0.6.3", default-features = false } | 28 | rand_core = { version = "0.6.3", default-features = false } |
| 29 | embedded-io = { version = "0.3.0", features = ["async"] } | 29 | embedded-io = { version = "0.3.1", features = ["async"] } |
| 30 | static_cell = "1.0" | 30 | static_cell = "1.0" |
diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1ec19e58b..c05aac3fc 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # Before upgrading check that everything is available on all tier1 targets here: | 1 | # Before upgrading check that everything is available on all tier1 targets here: |
| 2 | # https://rust-lang.github.io/rustup-components-history | 2 | # https://rust-lang.github.io/rustup-components-history |
| 3 | [toolchain] | 3 | [toolchain] |
| 4 | channel = "nightly-2022-09-22" | 4 | channel = "nightly-2022-10-25" |
| 5 | components = [ "rust-src", "rustfmt" ] | 5 | components = [ "rust-src", "rustfmt" ] |
| 6 | targets = [ | 6 | targets = [ |
| 7 | "thumbv7em-none-eabi", | 7 | "thumbv7em-none-eabi", |
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index d6770d6e9..e1a6dce41 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -18,10 +18,10 @@ cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | |||
| 18 | cortex-m-rt = "0.7.0" | 18 | cortex-m-rt = "0.7.0" |
| 19 | embedded-hal = "0.2.6" | 19 | embedded-hal = "0.2.6" |
| 20 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 20 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 21 | embedded-hal-async = { version = "=0.1.0-alpha.2" } | 21 | embedded-hal-async = { version = "=0.1.0-alpha.3" } |
| 22 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 22 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 24 | embedded-io = { version = "0.3.0", features = ["async"] } | 24 | embedded-io = { version = "0.3.1", features = ["async"] } |
| 25 | 25 | ||
| 26 | [profile.dev] | 26 | [profile.dev] |
| 27 | debug = 2 | 27 | debug = 2 |
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index bebbf557e..602c1fb57 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -26,7 +26,7 @@ cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | |||
| 26 | cortex-m-rt = "0.7.0" | 26 | cortex-m-rt = "0.7.0" |
| 27 | embedded-hal = "0.2.6" | 27 | embedded-hal = "0.2.6" |
| 28 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } | 28 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.9" } |
| 29 | embedded-hal-async = { version = "=0.1.0-alpha.2" } | 29 | embedded-hal-async = { version = "=0.1.0-alpha.3" } |
| 30 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 30 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 31 | 31 | ||
| 32 | [profile.dev] | 32 | [profile.dev] |
