Install
scopeguard
A RAII scope guard that will run a given closure when it goes out of scope, even if the code between panics (assuming unwinding panic). Defines the macros `defer!`, `defer_on_unwind!`, `defer_on_success!` as shorthands for guards with one of the implemented strategies.
1.2.0Latest, 17 Jul 2023
31MDownloads, last 90 days
0Advisories on the latest
0Advisories, all versions
MIT OR Apache-2.0Licence
573Stars
3.7/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.