diff options
| author | James Munns <[email protected]> | 2025-04-08 10:05:55 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-11 14:45:06 +0200 |
| commit | b1b2955b604f558d8bd2fcca07b8fd8da3e236fa (patch) | |
| tree | 3844982d987f13f434599d746d578b54233279a4 | |
| parent | b65a3a301a29c737f336ca344f671d4e9793fda8 (diff) | |
Switch to released version of `cordyceps`, add error if used w/o atomics
| -rw-r--r-- | embassy-executor/Cargo.toml | 5 | ||||
| -rw-r--r-- | embassy-executor/src/raw/deadline.rs | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index ab95b2939..e740f9ccf 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -82,10 +82,7 @@ avr-device = { version = "0.7.0", optional = true } | |||
| 82 | # `run_queue_atomics` would be enabled, and NOT when `run_queue_critical_section` | 82 | # `run_queue_atomics` would be enabled, and NOT when `run_queue_critical_section` |
| 83 | # would be enabled. | 83 | # would be enabled. |
| 84 | [target.'cfg(target_has_atomic="ptr")'.dependencies.cordyceps] | 84 | [target.'cfg(target_has_atomic="ptr")'.dependencies.cordyceps] |
| 85 | # TODO: targeting v0.3.3, to be released soon | 85 | version = "0.3.3" |
| 86 | version = "0.3" | ||
| 87 | git = "https://github.com/hawkw/mycelium" | ||
| 88 | rev = "1dad987b483078b248ac3e2e7a75f1ff2b463cc4" | ||
| 89 | 86 | ||
| 90 | [dev-dependencies] | 87 | [dev-dependencies] |
| 91 | critical-section = { version = "1.1", features = ["std"] } | 88 | critical-section = { version = "1.1", features = ["std"] } |
diff --git a/embassy-executor/src/raw/deadline.rs b/embassy-executor/src/raw/deadline.rs index 0b88ee2d6..da07d1aac 100644 --- a/embassy-executor/src/raw/deadline.rs +++ b/embassy-executor/src/raw/deadline.rs | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | use core::future::{poll_fn, Future}; | 1 | use core::future::{poll_fn, Future}; |
| 2 | use core::task::Poll; | 2 | use core::task::Poll; |
| 3 | 3 | ||
| 4 | #[cfg(not(target_has_atomic = "ptr"))] | ||
| 5 | compile_error!("The `drs-scheduler` feature is currently only supported on targets with atomics."); | ||
| 6 | |||
| 4 | /// A type for interacting with the deadline of the current task | 7 | /// A type for interacting with the deadline of the current task |
| 5 | /// | 8 | /// |
| 6 | /// Requires the `drs-scheduler` feature | 9 | /// Requires the `drs-scheduler` feature |
