mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add rust-scopeguard.
* gnu/packages/crates-io.scm (rust-scopeguard): New variable.
This commit is contained in:
parent
cbfef1f903
commit
ac3e813b84
1 changed files with 23 additions and 0 deletions
|
@ -599,6 +599,29 @@ (define-public rust-scoped-tls
|
|||
(license (list license:asl2.0
|
||||
license:expat))))
|
||||
|
||||
(define-public rust-scopeguard
|
||||
(package
|
||||
(name "rust-scopeguard")
|
||||
(version "1.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "scopeguard" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"03aay84r1f6w87ckbpj6cc4rnsxkxcfs13n5ynxjia0qkgjiabml"))))
|
||||
(build-system cargo-build-system)
|
||||
(home-page "https://github.com/bluss/scopeguard")
|
||||
(synopsis "Scope guard which will run a closure even out of scope")
|
||||
(description "This package provides 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 @code{defer!},
|
||||
@code{defer_on_unwind!}, @code{defer_on_success!} as shorthands for guards
|
||||
with one of the implemented strategies.")
|
||||
(license (list license:asl2.0
|
||||
license:expat))))
|
||||
|
||||
(define-public rust-unicode-xid
|
||||
(package
|
||||
(name "rust-unicode-xid")
|
||||
|
|
Loading…
Reference in a new issue