aboutsummaryrefslogtreecommitdiff
path: root/embassy-macros/src/macros/task.rs
Commit message (Collapse)AuthorAgeFilesLines
* executor: rename macro crate to embassy-executor-macros, bump it.Dario Nieuwenhuis2023-12-071-114/+0
|
* executor: add support for main/task macros in stable (allocates tasks in an ↵Dario Nieuwenhuis2023-11-241-0/+9
| | | | arena)
* Allow arbitrary expressions as pool_sizeDániel Buga2023-06-251-9/+9
|
* Update darlingDániel Buga2023-06-251-2/+3
|
* macros: better validation of function signatures.Dario Nieuwenhuis2023-03-081-1/+22
| | | | Fixes #1266
* Hide doc comments from inner function include doc comments on outer functionBrendon Fallquist2022-12-241-5/+13
|
* Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-181-2/+2
|
* macros: remove embassy_prefix attr.Dario Nieuwenhuis2022-08-171-8/+2
| | | | | | | This was used in the past for reexporting the macros from drogue-device, which is no longer using it. Also, it is a pain to support, so we don't want it.
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-1/+1
|
* Run rustfmt.Dario Nieuwenhuis2022-06-121-4/+1
|
* executor: "send-spawn is OK if the args are Send" only holds for async fn ↵Dario Nieuwenhuis2022-04-271-1/+1
| | | | | | | | futures. The normal `spawn()` methods can be called directly by the user, with arbitrary hand-implemented futures. We can't enforce they're only called with `async fn` futures. Therefore, make these require `F: Send`, and add a "private" one only for use in the macro, which can enforce it.
* executor: make send-spawning only require the task args to be Send, not the ↵Dario Nieuwenhuis2022-04-271-17/+4
| | | | whole future.
* executor: add raw::TaskPool.Dario Nieuwenhuis2022-04-271-6/+3
| | | | This simplifies the macro code a bit.
* macros: simplify task macro using "TAIT laundering".Dario Nieuwenhuis2022-04-261-17/+14
|
* macros: isolate the TAIT into its own mod.Dario Nieuwenhuis2022-04-251-34/+33
| | | | | This fixes type inference issues due to the TAIT's defining scope being the whole parent mod.
* Update Rust nightly.Dario Nieuwenhuis2022-04-241-8/+22
| | | | | | | | | Fixes a new opaque type error in the task macro. Full error is "opaque type's hidden type cannot be another opaque type from the same scope". This got disallwed by the lazy-TAIT PR: https://github.com/rust-lang/rust/pull/94081 Sadly there's now some weird type inference errors with pre-lazy-TAIT nightlies, so support for those is dropped.
* macros: cleanup, make work in stable.Dario Nieuwenhuis2022-02-121-0/+90