summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-01-22 16:47:10 +0100
committerMarius Bakke <marius@gnu.org>2022-01-23 19:59:08 +0100
commit2b3a26ca60e15b0d88e808c9008ee8213254b984 (patch)
treec437f20fd9e7a7bea361ec9bd8308b40f3c375ff /gnu
parentb44d9101e131ad57e9caf673da7f176e4fdc51fe (diff)
downloadguix-2b3a26ca60e15b0d88e808c9008ee8213254b984.tar.gz
gnu: Add rust-aliasable.
* gnu/packages/crates-io.scm (rust-aliasable-0.1): New variable.
Diffstat (limited to 'gnu')
-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 8abb28d143..563cff113c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2558,6 +2558,30 @@ code that is generic with regard to the algebraic entity types.")
 address that is aliasable when coerced to a raw pointer")
     (license license:expat)))
 
+(define-public rust-aliasable-0.1
+  (package
+    (name "rust-aliasable")
+    (version "0.1.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "aliasable" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "1z8548zdjlm4ps1k0d7x68lfdyji02crwcc9rw3q3bb106f643r5"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build? #t
+        #:cargo-inputs
+        (("rust-aliasable-deref-trait" ,rust-aliasable-deref-trait-0.2)
+         ("rust-stable-deref-trait" ,rust-stable-deref-trait-1))))
+    (home-page "https://github.com/avitex/rust-aliasable")
+    (synopsis "Basic aliasable (non unique pointer) types")
+    (description
+     "Rust library providing basic aliasable (non @code{core::ptr::Unique})
+types.")
+    (license license:expat)))
+
 (define-public rust-alloc-no-stdlib-2
   (package
     (name "rust-alloc-no-stdlib")