rtic/macros/src/codegen
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
..
assertions.rs More work 2020-12-10 20:33:13 +01:00
dispatchers.rs const generics 2021-07-09 18:44:19 +03:00
hardware_tasks.rs Fixing tests 2021-07-07 23:07:09 +02:00
idle.rs Full local resource syntax working 2021-07-07 21:04:31 +02:00
init.rs Fixing tests 2021-07-07 23:07:09 +02:00
local_resources.rs Cleanup from review (needs releases to compile) 2021-07-08 23:18:44 +02:00
local_resources_struct.rs Fixing tests 2021-07-07 23:07:09 +02:00
module.rs Propogate the task attributes to the spawn handles 2021-07-22 01:00:57 -07:00
post_init.rs Minimal app now compiles 2021-07-06 22:47:48 +02:00
pre_init.rs Minimal app now compiles 2021-07-06 22:47:48 +02:00
shared_resources.rs Cleanup from review (needs releases to compile) 2021-07-08 23:18:44 +02:00
shared_resources_struct.rs Fixing tests 2021-07-07 23:07:09 +02:00
software_tasks.rs const generics 2021-07-09 18:44:19 +03:00
timer_queue.rs const generics 2021-07-09 18:44:19 +03:00
util.rs const generics 2021-07-09 18:44:19 +03:00