guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: gnu: Add rust-owning-ref.


From: guix-commits
Subject: 03/05: gnu: Add rust-owning-ref.
Date: Mon, 2 Sep 2019 08:55:18 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit bb41995dc76a3f305178d7c92161f8d72d13f061
Author: Efraim Flashner <address@hidden>
Date:   Mon Sep 2 15:30:00 2019 +0300

    gnu: Add rust-owning-ref.
    
    * gnu/packages/crates-io.scm (rust-owning-ref): New variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4102792..b9fd0b2 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]