guix-commits
[Top][All Lists]
Advanced

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

242/371: gnu: Add rust-aligned-0.4.


From: guix-commits
Subject: 242/371: gnu: Add rust-aligned-0.4.
Date: Thu, 25 May 2023 10:48:29 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 7defb68d8edcffb9ee51b44f92407efdf54b8541
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 22 16:25:56 2023 +0300

    gnu: Add rust-aligned-0.4.
    
    * gnu/packages/crates-io.scm (rust-aligned-0.4): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 40129cc7fa..303aec7f0c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2762,6 +2762,26 @@ address that is aliasable when coerced to a raw pointer")
 types.")
     (license license:expat)))
 
+(define-public rust-aligned-0.4
+  (package
+    (name "rust-aligned")
+    (version "0.4.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "aligned" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0md67hsr0yw5qydr9hjlfz4wfxbbl39y7abkhpycf9m682a1p8l0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-as-slice" ,rust-as-slice-0.2))))
+    (home-page "https://github.com/japaric/aligned";)
+    (synopsis "Newtype with alignment of at least `A` bytes")
+    (description
+     "This package provides a newtype with alignment of at least `A` bytes.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-alloc-no-stdlib-2
   (package
     (name "rust-alloc-no-stdlib")



reply via email to

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