From b8e93ffd1679999ed16bfd91471d2fd7d2ab3f33 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 13 Oct 2022 15:48:37 +0200 Subject: [PATCH] Update embassy-time and embassy-sync revisions in This commit updates the revision of embassy-time and embassy-sync in infra/pre-provision to fix the following compilation error: error[E0107]: this struct takes 1 generic argument but 2 generic arguments were supplied --> /.cargo/git/checkouts/btmesh-e14acedbce757b27/6840160/btmesh-device/src/lib.rs:34:27 | 34 | embassy_sync::signal::Signal; | ^^^^^^ expected 1 generic argument - help: remove this generic argument | note: struct defined here, with 1 generic parameter: `T` --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/3b58ac1/embassy-sync/src/signal.rs:31:12 | 31 | pub struct Signal { | ^^^^^^ - For more information about this error, try `rustc --explain E0107`. error: could not compile `btmesh-device` due to previous error The commit also adds a rust-toolchain.toml to configure nightly rustc as currently there a number of compilation errors like the following two: error[E0658]: generic associated types are unstable --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/b7d0944/embassy-sync/src/pipe.rs:450:9 | 450 | / type FlushFuture<'a> = impl Future> 451 | | where 452 | | Self: 'a; | |_____________________^ | = note: see issue #44265 for more information = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable error[E0658]: where clauses on associated types are unstable --> /.cargo/git/checkouts/embassy-9312dcb0ed774b29/b7d0944/embassy-sync/src/pipe.rs:450:9 | 450 | / type FlushFuture<'a> = impl Future> 451 | | where 452 | | Self: 'a; | |_____________________^ | = note: see issue #44265 for more information = help: add `#![feature(generic_associated_types)]` to the crate attributes to enable Compiling cargo_metadata v0.15.0 For more information about this error, try `rustc --explain E0658`. error: could not compile `embassy-sync` due to 18 previous errors warning: build failed, waiting for other jobs to finish... --- infra/pre-provision/Cargo.toml | 4 ++-- infra/pre-provision/rust-toolchain.toml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 infra/pre-provision/rust-toolchain.toml diff --git a/infra/pre-provision/Cargo.toml b/infra/pre-provision/Cargo.toml index 46bf6a97..36d4c96a 100644 --- a/infra/pre-provision/Cargo.toml +++ b/infra/pre-provision/Cargo.toml @@ -53,5 +53,5 @@ btmesh-driver = { git = "https://github.com/drogue-iot/btmesh.git", branch = "ma #btmesh-models = { path = "../../drogue-iot/btmesh/btmesh-models" } #btmesh-driver = { path = "../../drogue-iot/btmesh/btmesh-driver" } -embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "3b58ac1bf86a2373e479e8e3cf92d2df7c29e00b" } -embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "3b58ac1bf86a2373e479e8e3cf92d2df7c29e00b" } +embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "b7d09442650d765562b25f9f27d654c2ef5e014a" } +embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "b7d09442650d765562b25f9f27d654c2ef5e014a" } diff --git a/infra/pre-provision/rust-toolchain.toml b/infra/pre-provision/rust-toolchain.toml new file mode 100644 index 00000000..5d56faf9 --- /dev/null +++ b/infra/pre-provision/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly"