diff options
| author | zjp <[email protected]> | 2024-06-09 11:39:47 +0800 |
|---|---|---|
| committer | zjp <[email protected]> | 2024-06-09 11:39:47 +0800 |
| commit | 3f45ec6ead2551b5f6c30ea7c718de26d126fbda (patch) | |
| tree | 0c227aef6e55bcc03d0dd987c641d0af9b4f55c8 /embassy-executor/src/lib.rs | |
| parent | e5495b51b43f71cdc489e92f4deb0cbc0e27e6aa (diff) | |
use nightly waker_getters APIs
Since https://github.com/rust-lang/rust/issues/96992 has stalled,
to prevent potential unsoundness caused by transmuting to &WakerHack,
we can use nightly waker_getters APIs by gating it behind nightly
feature in embassy-executor without waiting for it to be stablized.
Diffstat (limited to 'embassy-executor/src/lib.rs')
| -rw-r--r-- | embassy-executor/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 6a2e493a2..553ed76d3 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #![cfg_attr(not(any(feature = "arch-std", feature = "arch-wasm")), no_std)] | 1 | #![cfg_attr(not(any(feature = "arch-std", feature = "arch-wasm")), no_std)] |
| 2 | #![cfg_attr(feature = "nightly", feature(waker_getters))] | ||
| 2 | #![allow(clippy::new_without_default)] | 3 | #![allow(clippy::new_without_default)] |
| 3 | #![doc = include_str!("../README.md")] | 4 | #![doc = include_str!("../README.md")] |
| 4 | #![warn(missing_docs)] | 5 | #![warn(missing_docs)] |
