From patchwork Mon Oct 23 22:20:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve George X-Patchwork-Id: 55181 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 90DD027BBEA; Mon, 23 Oct 2023 23:25:38 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0819227BBE9 for ; Mon, 23 Oct 2023 23:25:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qv3Lg-0002uu-Bc; Mon, 23 Oct 2023 18:24:36 -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 1qv3Le-0002tz-Qt for guix-patches@gnu.org; Mon, 23 Oct 2023 18:24:34 -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 1qv3Le-0004Rn-IX for guix-patches@gnu.org; Mon, 23 Oct 2023 18:24:34 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qv3M7-0000nK-Ol; Mon, 23 Oct 2023 18:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66717] [PATCH 05/64] gnu: Add rust-rental and rust-rental-impl. Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Mon, 23 Oct 2023 22:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66717 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66717@debbugs.gnu.org Cc: Steve George , efraim@flashner.co.il X-Debbugs-Original-Xcc: efraim@flashner.co.il Received: via spool by 66717-submit@debbugs.gnu.org id=B66717.16980998672742 (code B ref 66717); Mon, 23 Oct 2023 22:25:03 +0000 Received: (at 66717) by debbugs.gnu.org; 23 Oct 2023 22:24:27 +0000 Received: from localhost ([127.0.0.1]:52159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv3LX-0000i3-8D for submit@debbugs.gnu.org; Mon, 23 Oct 2023 18:24:27 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:57584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qv3LQ-0000gz-8J for 66717@debbugs.gnu.org; Mon, 23 Oct 2023 18:24:20 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qv3Kr-00F9TT-Bu for 66717@debbugs.gnu.org; Tue, 24 Oct 2023 00:23:45 +0200 Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qv3Kr-0000N0-2W for 66717@debbugs.gnu.org; Tue, 24 Oct 2023 00:23:45 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qv3Ki-004C3R-4q; Tue, 24 Oct 2023 00:23:36 +0200 From: Steve George Date: Mon, 23 Oct 2023 23:20:50 +0100 Message-ID: <130697fd18c43a770d7758e54064c4b2586bbff3.1698099449.git.steve@futurile.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-rental): New variable. * gnu/packages/crates-io.scm (rust-rental-impl): New variable. -- >8 -- This crate built from source in June, but no longer does so. I suspect that it's due to an update in the rust compiler/crate version. Tried rust 1.64 but this didn't fix it - didn't know how else to debug. As the only dependency is my own package decided not to spend more time on it - set skip-build? #t --- gnu/packages/crates-io.scm | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 276e3852a5..a3360c6024 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56795,6 +56795,53 @@ (define-public rust-rend-0.4 Rust.") (license license:expat))) +(define-public rust-rental-0.5 + (package + (name "rust-rental") + (version "0.5.6") + (source (origin + (method url-fetch) + (uri (crate-uri "rental" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0bhzz2pfbg0yaw8p1l31bggq4jn077wslf6ifhj22vf3r8mgx2fc")))) + (build-system cargo-build-system) + (arguments + (list #:skip-build? #t ; built with previous crate/rust version + #:cargo-inputs `(("rust-rental-impl" ,rust-rental-impl-0.5) + ("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))) + (home-page "https://github.com/jpernst/rental") + (synopsis "Macro to generate safe self-referential structs") + (description + "A macro to generate safe self-referential structs, plus +premade types for common use-cases. This crate is frozen and should be +avoided if possible.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-rental-impl-0.5 + (package + (name "rust-rental-impl") + (version "0.5.5") + (source (origin + (method url-fetch) + (uri (crate-uri "rental-impl" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1pj0qgmvwwsfwyjqyjxzikkwbwc3vj7hm3hdykr47dy5inbnhpj7")))) + (build-system cargo-build-system) + (arguments + (list #:skip-build? #f + #:cargo-inputs `(("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/jpernst/rental") + (synopsis "Implementation details of the rust-rental crate.") + (description "Implementation details for the rust-rental crate. +Should not be used directly.") + (license (list license:expat license:asl2.0)))) + (define-public rust-reopen-0.3 (package (name "rust-reopen")