rtic/macros/src
Alex Crawford 5f395658f0 Propogate the task attributes to the spawn handles
This allows tasks to be gated by `cfg` attributes when also using
monotonics. For example:

```rust
#[cfg(feature = "logging")]
#[task(shared = [logger])]
fn logger_init(mut cx: logger_init::Context) {
    /* ... */
}
```

Without this change, the reschedule_at() implementation is
unconditionally included even though it references the SpawnHandle from
its task module, which is _conditionally_ included. This resulted in
compiler errors like the following:

```
error[E0433]: failed to resolve: use of undeclared crate or module `logger_init`
   --> src/main.rs:243:8
    |
243 |     fn logger_init(mut cx: logger_init::Context) {
    |        ^^^^^^^^^^^ use of undeclared crate or module `logger_init`
```
2021-07-22 01:00:57 -07:00
..
codegen Propogate the task attributes to the spawn handles 2021-07-22 01:00:57 -07:00
tests use tuple struct syntax for Monotonics everywhere 2021-07-21 10:14:00 +02:00
analyze.rs move dispatchers to app argument 2020-10-23 23:58:09 +02:00
check.rs TQ handlers being generated 2020-12-08 20:49:13 +01:00
codegen.rs Fixing tests 2021-07-07 23:07:09 +02:00
lib.rs Preparing release 0.6.0-alpha.1 2021-03-04 20:00:03 +01:00
tests.rs Brutally yank out multicore 2020-09-01 14:50:06 +00:00