12 unstable releases (3 breaking)
0.3.1 | Oct 26, 2023 |
---|---|
0.3.0 | Oct 20, 2023 |
0.2.6 | Oct 18, 2023 |
0.2.4 | Aug 9, 2023 |
0.0.1 | Jul 29, 2023 |
#6 in #seen
2,919 downloads per month
Used in 7 crates
(via async-dropper)
15KB
227 lines
🗑 async-dropper-derive
async-dropper
is probably the least-worst ad-hoc AsyncDrop
implementation you've seen, and it works in two ways:
async_dropper::simple
is stolen nearly verbatim from this StackOverflow answer (thanks topaholg
!)async_dropper::derive
provides a trait calledAsyncDrop
and corresponding [derive macro][rust-derive-macro], which try to useDefault
andPartialEq
to determine when to async drop.
The code in this crate powers async_dropper::derive
. See the async_dropper
crate for more details.
Dependencies
~0.2–10MB
~123K SLoC