From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id EP/tEbVwMWZsMQEA62LTzQ:P1 (envelope-from ) for ; Wed, 01 May 2024 00:29:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EP/tEbVwMWZsMQEA62LTzQ (envelope-from ) for ; Wed, 01 May 2024 00:29:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wmeyer.eu header.s=mail header.b="ZXYbZh/e"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wmeyer.eu (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714516149; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=92h/vU04T8zYl0TSzi5rJH9SpB2EwjAjnZUJN5ffCKM=; b=ibWPuisgj+ZMwO5s8AdOV3UmUJq5HTxqzqC6DrOH0ju3p0qAU/Z1oofPjleAhpUSwlEKap Dz0wS1cPBmhyTTyB+GHGemIJAKM+FL4Sxvtv16K/PqVrShoRJ++tQbr9BS0L09DUg9Veyj mn+tJj0iCR2WbDiI800jVuNMF1xEZ35xMvlT79BU8GsHKOmy0qoHJCG3DIHAMuxkTf6t9C 0RO/kc57aEwiR+/cptW1NK6eGCkX3LZTYvVs/8CIg7izYWb+QenUGd8ZoPM79oB+sH+lRH j0cxdlVauDg/RbV0JwO3wKiM1PytW/I0+nm7942gmKfxZTt+bH0VQpCx+0j5tA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wmeyer.eu header.s=mail header.b="ZXYbZh/e"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wmeyer.eu (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714516149; a=rsa-sha256; cv=none; b=EKERHUWP4TLMSFQQt7O2EV2EMYz9HDmchzIBzUCziEaDOtAzRW793rT2kEpVqH1DKR8sWf P9nGfUkRRLv3K47vWV0RnIGneFOSCM9B+89yv/A3+mMU5CXTL/gVYAC3zuQDMQMkUG9cZk 26rNdJ5Ld9wxZtS4B+5W52GU103cFuYpuYLnwuta6+1Vmh5KPJe0ktyKxj0WoXW5JTnUw5 XXyTjIhUmIHOgp61+towOynFFSEwTRHdN5EgjG7A4dwOU1jq+y6wBTbrC2oRS7Y+UqdlCl qqkJgV0R7FdL2gdilvu+2DtPILIwr+BrsoKGg9vIJG/OR17toS1POS3x7VWjSg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D24D116430 for ; Wed, 1 May 2024 00:29:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1vxt-0007Vp-IB; Tue, 30 Apr 2024 18:28:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1vxs-0007Uj-3u for guix-patches@gnu.org; Tue, 30 Apr 2024 18:28:44 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1vxr-0001Ct-S3 for guix-patches@gnu.org; Tue, 30 Apr 2024 18:28:43 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s1vyC-0001Q0-LP; Tue, 30 Apr 2024 18:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70685] [PATCH 03/30] gnu: Add rust-binary-layout-2. Resent-From: Wilko Meyer Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Tue, 30 Apr 2024 22:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70685 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70685@debbugs.gnu.org Cc: Wilko Meyer , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 70685-submit@debbugs.gnu.org id=B70685.17145161405358 (code B ref 70685); Tue, 30 Apr 2024 22:29:04 +0000 Received: (at 70685) by debbugs.gnu.org; 30 Apr 2024 22:29:00 +0000 Received: from localhost ([127.0.0.1]:33642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1vy6-0001Nn-MI for submit@debbugs.gnu.org; Tue, 30 Apr 2024 18:29:00 -0400 Received: from mail.wmeyer.eu ([95.216.196.112]:56432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s1vxy-0001M7-HV for 70685@debbugs.gnu.org; Tue, 30 Apr 2024 18:28:50 -0400 From: Wilko Meyer DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wmeyer.eu; s=mail; t=1714516104; bh=92h/vU04T8zYl0TSzi5rJH9SpB2EwjAjnZUJN5ffCKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZXYbZh/eWN/ODNTEwF5SQMueaklqvG5gWSZqSpJ5ObS8M4uZ7pPrpRYFxoE2te0mQ y48oVr7UZ6hxz6YvGuPucclr24IXBkh3CPvktcRbkgLvrP2JgpZiOD7x/6roYeQod1 0T5752ib8zGNA6aIbiZYR2s0WCcsQY4u9ZxZBY8o= Date: Wed, 1 May 2024 00:27:08 +0200 Message-ID: <979db614e19fdf1d30427a7e0c146ea10fa6c258.1714515573.git.w@wmeyer.eu> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 4.11 X-Spam-Score: 4.11 X-Migadu-Queue-Id: D24D116430 X-Migadu-Scanner: mx13.migadu.com X-TUID: QrgpYeFS/mkB * 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