guix-commits
[Top][All Lists]
Advanced

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

129/276: gnu: Add rust-repr-offset-0.2.


From: guix-commits
Subject: 129/276: gnu: Add rust-repr-offset-0.2.
Date: Wed, 18 Oct 2023 04:49:44 -0400 (EDT)

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

commit 533779c2354712270f69b5628074e607043effaa
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 09:55:58 2023 +0300

    gnu: Add rust-repr-offset-0.2.
    
    * gnu/packages/crates-io.scm (rust-repr-offset-0.2,
    rust-repr-offset-derive-0.2): New variables.
---
 gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 29cdd7bd68..d0a0ee4072 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55222,6 +55222,57 @@ Rust.")
     (description "File reopening utility.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-repr-offset-0.2
+  (package
+    (name "rust-repr-offset")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "repr-offset" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1skj3cy77j7vwslnjjzgladq61z6jjvwlw89kp0zz7fjbdsp047v"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; tests must be run with the "testing" feature
+       #:cargo-inputs
+       (("rust-repr-offset-derive" ,rust-repr-offset-derive-0.2)
+        ("rust-tstr" ,rust-tstr-0.2))
+       #:cargo-development-inputs
+       (("rust-repr-offset-derive" ,rust-repr-offset-derive-0.2))))
+    (home-page "https://github.com/rodrimati1992/repr_offset_crates/";)
+    (synopsis "Offsets of fields for types with a stable layout")
+    (description "Offsets of fields for types with a stable layout.")
+    (license license:zlib)))
+
+(define-public rust-repr-offset-derive-0.2
+  (package
+    (name "rust-repr-offset-derive")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "repr-offset-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rwkbf12vmgi5v1llmgiirn0yaaiyw821rd7fc9fhpbkdxz95yh9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; tests must be run with the "testing" feature
+       #:cargo-inputs
+       (("rust-as-derive-utils" ,rust-as-derive-utils-0.8)
+        ("rust-core-extensions" ,rust-core-extensions-0.1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/rodrimati1992/repr_offset_crates/";)
+    (synopsis
+     "For deriving the offsets of fields for types with a stable layout")
+    (description
+     "For deriving the offsets of fields for types with a stable layout.")
+    (license license:zlib)))
+
 (define-public rust-reqwest-0.11
   (package
     (name "rust-reqwest")



reply via email to

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