[go: up one dir, main page]

scopeguard 0.3.3

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!` and `defer_on_unwind!`; the latter only runs if the scope is extited through unwinding on panic.
Documentation
[package]
name = "scopeguard"
version = "0.3.3"

license = "MIT/Apache-2.0"
repository = "https://github.com/bluss/scopeguard"
documentation = "https://docs.rs/scopeguard/"
authors = ["bluss"]

description = """
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!` and `defer_on_unwind!`; the latter only runs
if the scope is extited through unwinding on panic.
"""

keywords = ["scope-guard", "defer", "panic"]
categories = ["rust-patterns"]

[features]
default = ["use_std"]
use_std = []

[package.metadata.release]
no-dev-version = true