[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36920] [PATCH 28/43] gnu: Add rust-scopeguard.
From: |
Efraim Flashner |
Subject: |
[bug#36920] [PATCH 28/43] gnu: Add rust-scopeguard. |
Date: |
Sun, 4 Aug 2019 14:34:00 +0300 |
* gnu/packages/crates-io.scm (rust-scopeguard): New variable.
---
gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 73bff909a8..478b06b698 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -599,6 +599,29 @@ library's old @code{scoped_thread_local!} macro for
providing scoped access to
(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")
--
2.22.0
- [bug#36920] [PATCH 18/43] gnu: Add rust-md5., (continued)
- [bug#36920] [PATCH 18/43] gnu: Add rust-md5., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 20/43] gnu: Add rust-percent-encoding., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 19/43] gnu: Add rust-peeking-take-while., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 21/43] gnu: Add rust-pin-utils., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 25/43] gnu: Add rust-quick-error., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 22/43] gnu: Add rust-plain., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 26/43] gnu: Add rust-rustc-std-workspace-core., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 23/43] gnu: Add rust-pocket-resources., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 27/43] gnu: Add rust-scoped-tls., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 24/43] gnu: Add rust-ppv-lite86., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 28/43] gnu: Add rust-scopeguard.,
Efraim Flashner <=
- [bug#36920] [PATCH 33/43] gnu: Add rust-stdweb-internal-runtime., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 34/43] gnu: Add rust-strsim., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 29/43] gnu: Add rust-semver-parser., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 30/43] gnu: Add rust-shlex., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 32/43] gnu: Add rust-spin., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 36/43] gnu: Add rust-typenum., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 38/43] gnu: Add rust-unicode-width., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 31/43] gnu: Add rust-slab., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 35/43] gnu: Add rust-synstructure-test-traits., Efraim Flashner, 2019/08/04
- [bug#36920] [PATCH 37/43] gnu: Add rust-ucd-util., Efraim Flashner, 2019/08/04