zigbee-macros 0.1.0-alpha.4

Declarative macros backing the `zigbee` protocol stack: frame (de)serialization and information bases
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 38.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 119.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • thebino

Zigbee Macros

Declarative macros backing the zigbee protocol stack.

Internal API. Both macros are #[doc(hidden)] and exist to serve the other zigbee-* crates. They are published because macro expansion happens in the consumer, not because they are meant to be used directly expect breaking changes without a major version bump.

Contents

Macro Purpose
impl_byte! Derives TryRead/TryWrite from the byte crate for structs, newtypes and tag-dispatched enums, so a frame layout is declared once and serializes itself
construct_ib! Builds an information base (the NWK NIB, the APS AIB): a singleton with per-field locked accessors, update_<field> mutators, dirty tracking and optional flash-backed persistence

Toolchain

Requires a nightly toolchain: construct_ib! uses the unstable macro_metavar_expr_concat feature to derive identifiers from the information base name.

🏛️ License

Licensed under either of:

🧩 Contribution

This is a free and open project and lives from contributions of the community.

See our Contribution Guide