aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-02 15:30:00 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-02 15:54:59 +0300
commitbb41995dc76a3f305178d7c92161f8d72d13f061 (patch)
tree741e7127976eb51dc582380f89ebd19d64e30201
parent44b6397a58c6c5bc2cc45646667f0fc389c54f37 (diff)
downloadpatches-bb41995dc76a3f305178d7c92161f8d72d13f061.tar
patches-bb41995dc76a3f305178d7c92161f8d72d13f061.tar.gz
gnu: Add rust-owning-ref.
* gnu/packages/crates-io.scm (rust-owning-ref): New variable.
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 410279255b..b9fd0b2ae5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1133,6 +1133,30 @@ implementation (which is unstable / requires nightly).")
(license (list license:asl2.0
license:expat))))
+(define-public rust-owning-ref
+ (package
+ (name "rust-owning-ref")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "owning_ref" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "04zgwy77lin8qz398s6g44467pd6kjhbrlqifkia5rkr47mbi929"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-stable-deref-trait" ,rust-stable-deref-trait))))
+ (home-page "https://github.com/Kimundi/owning-ref-rs")
+ (synopsis "Create references that carry their owner with them")
+ (description
+ "This package provides a library for creating references that carry their
+owner with them. This can sometimes be useful because Rust borrowing rules
+normally prevent moving a type that has been borrowed from.")
+ (license license:expat)))
+
(define-public rust-peeking-take-while
(package
(name "rust-peeking-take-while")