# scopeguard (crates.io)

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.

- Latest: 1.2.0 (2023-07-17)
- Licence: MIT OR Apache-2.0
- Downloads: 309852400 last 90 days
- Advisories on the latest version: 0


Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
