async-dropper-derive

Crates.ioasync-dropper-derive
lib.rsasync-dropper-derive
version0.3.1
sourcesrc
created_at2023-07-29 05:07:18.359156
updated_at2023-10-26 14:43:58.094173
descriptionThe derive macro crate that supplies the implementation for AsyncDrop
homepage
repositoryhttps://github.com/t3hmrman/async-dropper
max_upload_size
id929111
size18,550
Victor Adossi ("vados") (t3hmrman)

documentation

README

🗑 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 to paholg!)
  • async_dropper::derive provides a trait called AsyncDrop and corresponding [derive macro][rust-derive-macro], which try to use Default and PartialEq to determine when to async drop.

The code in this crate powers async_dropper::derive. See the async_dropper crate for more details.

Commit count: 129

cargo fmt