[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#70685] [PATCH 03/30] gnu: Add rust-binary-layout-2.
From: |
Wilko Meyer |
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
- [bug#70685] [PATCH 00/30] Add rust-osm-io., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 01/30] gnu: rust-anyhow-1: Update to 1.0.82., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 03/30] gnu: Add rust-binary-layout-2.,
Wilko Meyer <=
- [bug#70685] [PATCH 02/30] gnu: Add rust-benchmark-rs-0.1., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 05/30] gnu: rust-bytes-1: Update to 1.6.0., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 06/30] gnu: rust-chrono-0.4: Update to 0.4.38., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 07/30] gnu: Add rust-cidr-0.2., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 04/30] gnu: Add rust-bitstring-0.1., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 09/30] gnu: Add rust-escape-string-0.1., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 18/30] gnu: rust-regex-1: Update to 1.10.4., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 08/30] gnu: Add rust-command-executor-0.1., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 10/30] gnu: Add rust-eui48-1., Wilko Meyer, 2024/04/30
- [bug#70685] [PATCH 20/30] gnu: Add rust-rlimit-0.10., Wilko Meyer, 2024/04/30