Expand description
§j1939-macros
Procedural macros for the j1939-rs library.
§Note on std Usage
This crate uses the standard library (std) and does not have #![no_std].
This is intentional and correct:
- Proc macros run at compile time on the developer’s machine, not on the embedded target
- The Rust compiler requires proc macro crates to use
std - Dynamic allocations (Vec, String, HashMap) are used during code generation
- This code never runs on the embedded system
The generated code from these macros is fully no_std compatible and runs on embedded
targets without heap allocation. See the j1939-rs crate documentation for details on
embedded system support.
Attribute Macros§
- j1939_
enum - Attribute macro for registering enums used in J1939 messages.
- j1939_
message - Attribute macro for defining J1939 message structures with automatic marshalling/unmarshalling.