#resources #linear #drop

macro dispose-derive

Derive macro for the dispose crate

8 releases

0.4.2 Nov 21, 2024
0.4.1 Nov 21, 2024
0.4.0 Jul 31, 2023
0.3.0 Jul 3, 2021
0.1.2 Jun 21, 2020

#57 in #drop

Download history 8361/week @ 2025-05-29 9733/week @ 2025-06-05 7845/week @ 2025-06-12 4680/week @ 2025-06-19 3906/week @ 2025-06-26 5252/week @ 2025-07-03 6142/week @ 2025-07-10 6806/week @ 2025-07-17 7168/week @ 2025-07-24 6670/week @ 2025-07-31 9362/week @ 2025-08-07 8929/week @ 2025-08-14 10033/week @ 2025-08-21 6849/week @ 2025-08-28 9476/week @ 2025-09-04 8574/week @ 2025-09-11

37,699 downloads per month
Used in 14 crates (via dispose)

MIT/Apache

22KB
373 lines

Derive macro for the dispose crate.

This crate provides a derive macro for quickly deriving Dispose on types where the values can be consumed relatively trivially.


dispose - Linear wrappers for Rust

This is a small crate I made when working with gfx-hal to simplify working with linear resources that must be consumed at the end of their life, rather than borrowed as Drop does. For more information, see the docs.

Dependencies

~180–600KB
~14K SLoC