flense-derive 0.4.1

Derive macros for flense `Adapter`/`Field` implementations
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 14.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 297.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • biteablepet

Derive macros for flense.

This crate provides [macro@Adapter], a derive that generates the unsafe impl Adapter<...> blocks flense needs, with the byte offset filled in correctly from offset_of!.

Use of this derive is never required; you could directly write these implementations yourself, but the derive lets you avoid explicitly writing the unsafe block and performs some safety checks.