alloc-once-macros 0.1.0-rc.1

Procedural macro implementation detail of the `alloc-once` crate.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 276.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tinybeachthor/alloc-once
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tinybeachthor

Procedural macro backing alloc_once!.

alloc_once!(v1, v2, ...) packs the values into a single tuple, allocates that tuple once inside a freshly created bump arena, and returns an alloc_once::AllocOnce guard that owns the arena. All bumpalo details are hidden: the expansion only names paths under ::alloc_once, so callers do not need a bumpalo dependency of their own.