mirror of
https://gitee.com/openharmony/third_party_rust_scopeguard
synced 2024-11-23 06:30:18 +00:00
06f7b5a9a8
Change the macros (defer, defer_on_success and defer_on_unwind) to accept statements instead of just an expression. Update version to "1.1.0".
27 lines
681 B
TOML
27 lines
681 B
TOML
[package]
|
|
name = "scopeguard"
|
|
version = "1.1.0"
|
|
|
|
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!`, `defer_on_unwind!`, `defer_on_success!` as
|
|
shorthands for guards with one of the implemented strategies.
|
|
"""
|
|
|
|
keywords = ["scope-guard", "defer", "panic", "unwind"]
|
|
categories = ["rust-patterns", "no-std"]
|
|
|
|
[features]
|
|
default = ["use_std"]
|
|
use_std = []
|
|
|
|
[package.metadata.release]
|
|
no-dev-version = true
|