From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mNgtAkDPlWRHvQAASxT56A (envelope-from ) for ; Fri, 23 Jun 2023 18:58:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id eAxCAkDPlWSvPAAA9RJhRA (envelope-from ) for ; Fri, 23 Jun 2023 18:58:40 +0200 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 BF75219EDD for ; Fri, 23 Jun 2023 18:58:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687539519; 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; bh=iIRqiwV4NKpprK0FZZDCnzzK7agICZqtq9luH0NeVAk=; b=OOLQI8fFmVmzkaE54SkvZ2ZIEf5t1aWMk0Lk/qR95ZbnsoP8CTZIV6EEtungKyAg+gcxke f8DTqfGrHYJ8/H07l8fL5aRCKOziACybtiontYBdut4DCnHsOkciYPOrWsUlsqxpJuQ02l 0buTyXDPA4DIfm4qqcvx+1XVPQeDQdcEcTDwti8IAxfE/5HlS7DO+xNNa3zyrokD5FGd2b DTRwoajEO7MP6zBMGR3Rs/hSRtPdXqqgL5L4AZRqqTHdLHkGe9WYlgncW+cBzQmFqs7k9h eD7p4KBUGiD9QSaNta8hj0RgQ68YUxwWagSc+84Vl2dhiQPfSfuN7eY9+EpeCA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687539519; a=rsa-sha256; cv=none; b=a6hY63LCxsc6ctGdOUNqG22jvw5brOYHNin13vMBQcUSvaUADyDD3cMyACjS/kgv5pPkJa f4V9b6oVFzWjwMoYe1AFda+Z26YuTnGTQ2p7nC8Ip7tvQfz+5TW9blZeObSFy+PX26KW5k 9OyHtmkOU4IcoVBG37sKRsnvu+Fezo9xwCOFbOtna70ySJSIkhMiI01C3MPtgqwoxk/RdD pQDnyk8MJfZY+nn1aJFXQKEWntOZ5k4kZpliqQwkHPEcaRQRWQD6qZ901o1l/SR4dGnHRn 9Fu+kCPOkVtMhQmCkwQ2Vtz5IwK0Trf3cuf2FFcr9gxUmMVB/f1Qw7p2qhIlNw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCk6q-0000kr-O2; Fri, 23 Jun 2023 12:58:08 -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 1qCk6m-0000j0-R7 for guix-patches@gnu.org; Fri, 23 Jun 2023 12:58:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCk6m-0006rV-GP for guix-patches@gnu.org; Fri, 23 Jun 2023 12:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCk6m-0004Hi-Bt; Fri, 23 Jun 2023 12:58:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64248] [PATCH 3/8] gnu: Add rust-enum-dispatch Resent-From: Steve George Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Fri, 23 Jun 2023 16:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64248 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 64248@debbugs.gnu.org Cc: Steve George , efraim@flashner.co.il X-Debbugs-Original-Xcc: efraim@flashner.co.il Received: via spool by 64248-submit@debbugs.gnu.org id=B64248.168753945716378 (code B ref 64248); Fri, 23 Jun 2023 16:58:04 +0000 Received: (at 64248) by debbugs.gnu.org; 23 Jun 2023 16:57:37 +0000 Received: from localhost ([127.0.0.1]:39466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCk6J-0004G2-Io for submit@debbugs.gnu.org; Fri, 23 Jun 2023 12:57:36 -0400 Received: from mailtransmit05.runbox.com ([185.226.149.38]:51410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCk68-0004Ea-L4 for 64248@debbugs.gnu.org; Fri, 23 Jun 2023 12:57:25 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qCk63-006ypu-1u for 64248@debbugs.gnu.org; Fri, 23 Jun 2023 18:57:19 +0200 Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qCk62-00057G-Pn for 64248@debbugs.gnu.org; Fri, 23 Jun 2023 18:57:18 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1qCk5j-0000Im-Bu; Fri, 23 Jun 2023 18:56:59 +0200 From: Steve George Date: Fri, 23 Jun 2023 17:56:46 +0100 Message-Id: <8f6ac6d9d485a50d76206ebf0a6c8721516fab32.1687539092.git.steve@futurile.net> X-Mailer: git-send-email 2.40.1 In-Reply-To: <50613bf2-90f6-c885-28a9-6eca1d487a07@futurile.net> References: <50613bf2-90f6-c885-28a9-6eca1d487a07@futurile.net> 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.05 X-Spam-Score: -3.05 X-Migadu-Queue-Id: BF75219EDD X-TUID: UVdydJh2oPxT * gnu/packages/crates-io.scm (rust-enum-dispatch): New variable. --- gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 44f51c8c11..b6ed862306 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -21487,6 +21487,37 @@ (define-public rust-enum-derive-0.1 "This crate provides macros for deriving additional functionality for enums.") (license (list license:expat license:asl2.0)))) +(define-public rust-enum-dispatch-0.3 + (package + (name "rust-enum-dispatch") + (version "0.3.11") + (source (origin + (method url-fetch) + (uri (crate-uri "enum_dispatch" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1qlxlxjvy92s0fwcwlnd2cdkkyml1755xap2lq8v4812hsanxwqi")))) + (build-system cargo-build-system) + (arguments + (list #:skip-build? #t + #:cargo-inputs `(("rust-once-cell" ,rust-once-cell-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)) + #:cargo-development-inputs `(("rust-custom-derive" ,rust-custom-derive-0.1) + ("rust-enum-derive" ,rust-enum-derive-0.1) + ("rust-rand" ,rust-rand-0.6) + ("rust-serde" ,rust-serde-1) ;requires 1.0.136 + ("rust-serde-json" ,rust-serde-json-1) + ("rust-smol" ,rust-smol-1)))) + (home-page "https://gitlab.com/antonok/enum_dispatch") + (synopsis "Faster alternative to dynamically dispatched method calls") + (description + "This crate transforms your trait objects into concrete compound types, +increasing their method call speed up to 10x.") + (license (list license:expat license:asl2.0)))) + (define-public rust-enum-map-derive-0.4 (package (name "rust-enum-map-derive") -- 2.40.1