#cpu #macro #target #json #conditional-compilation #conditional #proc-macro #procedural-macro #procedural #associated

nightly macro target-cpu-macro

A procedural macro for conditional compilation based on the CPU being targeted

3 releases

0.1.3 Jan 29, 2021
0.1.2 Jan 29, 2021
0.1.1 Jul 24, 2020
0.1.0 Jul 2, 2020
Download history 121/week @ 2022-10-30 107/week @ 2022-11-06 116/week @ 2022-11-13 88/week @ 2022-11-20 93/week @ 2022-11-27 86/week @ 2022-12-04 102/week @ 2022-12-11 75/week @ 2022-12-18 70/week @ 2022-12-25 61/week @ 2023-01-01 78/week @ 2023-01-08 58/week @ 2023-01-15 85/week @ 2023-01-22 98/week @ 2023-01-29 82/week @ 2023-02-05 67/week @ 2023-02-12

339 downloads per month
Used in ruduino

MIT license

9KB
107 lines

A crate used to query the current target CPU for a crate.

Provides macros for fetching the target CPU name, and custom attributes that can be used to conditionally enable code based on that CPU.

Uses the crate target-cpu-fetch to drive the logic.

Dependencies

~145KB