guix-commits
[Top][All Lists]
Advanced

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

36/53: gnu: Add rust-stable-deref-trait.


From: guix-commits
Subject: 36/53: gnu: Add rust-stable-deref-trait.
Date: Wed, 28 Aug 2019 09:55:06 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 9951b78e4472a9539d9ed6980ff61f007e544cb1
Author: Efraim Flashner <address@hidden>
Date:   Wed Aug 28 16:28:54 2019 +0300

    gnu: Add rust-stable-deref-trait.
    
    * gnu/packages/crates-io.scm (rust-stable-deref-trait): 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 acb4873..b26967b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1361,6 +1361,30 @@ spinning.  They may contain data, are usable without 
@code{std},and static
 initializers are available.")
     (license license:expat)))
 
+(define-public rust-stable-deref-trait
+  (package
+    (name "rust-stable-deref-trait")
+    (version "1.1.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "stable_deref_trait" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1j2lkgakksmz4vc5hfawcch2ipiskrhjs1sih0f3br7s7rys58fv"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/storyyeller/stable_deref_trait0";)
+    (synopsis "Defines an unsafe marker trait, StableDeref")
+    (description
+      "This crate defines an unsafe marker trait, StableDeref, for container
+types which deref to a fixed address which is valid even when the containing
+type is moved.  For example, Box, Vec, Rc, Arc and String implement this trait.
+Additionally, it defines CloneStableDeref for types like Rc where clones deref
+to the same address.")
+    (license (list license:asl2.0
+                   license:expat))))
+
 (define-public rust-stdweb-internal-runtime
   (package
     (name "rust-stdweb-internal-runtime")



reply via email to

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