GNU bug report logs - #70685
[PATCH 00/30] Add rust-osm-io.

Previous Next

Package: guix-patches;

Reported by: Wilko Meyer <w <at> wmeyer.eu>

Date: Tue, 30 Apr 2024 22:27:01 UTC

Severity: normal

Tags: patch

Done: Andreas Enge <andreas <at> enge.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Wilko Meyer <w <at> wmeyer.eu>
To: 70685 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, Efraim Flashner <efraim <at> flashner.co.il>
Subject: [bug#70685] [PATCH 03/30] gnu: Add rust-binary-layout-2.
Date: Wed,  1 May 2024 00:27:08 +0200
* gnu/packages/crates-io.scm (rust-binary-layout-2): New variable.

Change-Id: I316251bc9f973b27d6ef484f0d76e5bb339bae43
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d0ba421dd4..b6b8912b11 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6124,6 +6124,32 @@ (define-public rust-bigdecimal-0.1
         #:cargo-development-inputs
         (("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-binary-layout-2
+  (package
+    (name "rust-binary-layout")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "binary-layout" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01csg7ikzik767m7i38ankihs6cnd22449krc2ingw86vg5ppyq9"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-doc-comment" ,rust-doc-comment-0.3)
+                       ("rust-paste" ,rust-paste-1))))
+    (home-page "https://github.com/smessmer/binary-layout")
+    (synopsis
+     "Type-safe, inplace, zero-copy access to structured binary data")
+    (description
+     "The binary-layout library allows type-safe, inplace, zero-copy access to
+structured binary data.  You define a custom data layout and give it a slice of
+binary data, and it will allow you to read and write the fields defined in the
+layout from the binary data without having to copy any of the data.  It's
+similar to transmuting to/from a `#[repr(packed)]` struct, but much safer.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-binascii-0.1
   (package
     (name "rust-binascii")
-- 
2.41.0





This bug report was last modified 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.