From: Steve George <steve@futurile.net>
To: 64248@debbugs.gnu.org
Cc: Steve George <steve@futurile.net>, efraim@flashner.co.il
Subject: [bug#64248] [PATCH 3/8] gnu: Add rust-enum-dispatch
Date: Fri, 23 Jun 2023 17:56:46 +0100 [thread overview]
Message-ID: <8f6ac6d9d485a50d76206ebf0a6c8721516fab32.1687539092.git.steve@futurile.net> (raw)
In-Reply-To: <50613bf2-90f6-c885-28a9-6eca1d487a07@futurile.net>
* 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
next prev parent reply other threads:[~2023-06-23 16:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 10:52 [bug#64248] Series to update to rust-rspotify-0.11 Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 1/8] gnu: rust-strum: Update to 0.24.1 Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 2/8] gnu: Add rust-enum-derive Steve George
2023-06-23 16:56 ` Steve George [this message]
2023-06-23 16:56 ` [bug#64248] [PATCH 4/8] gnu: Add rust-rspotify-model Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 5/8] gnu: Add rust-rspotify-macros Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 6/8] gnu: Add rust-maybe-async Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 7/8] gnu: Add rust-rspotify-http Steve George
2023-06-23 16:56 ` [bug#64248] [PATCH 8/8] gnu: rust-rspotify: Update to 0.11.7 Steve George
2023-10-02 8:42 ` bug#64248: Series to update to rust-rspotify-0.11 Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f6ac6d9d485a50d76206ebf0a6c8721516fab32.1687539092.git.steve@futurile.net \
--to=steve@futurile.net \
--cc=64248@debbugs.gnu.org \
--cc=efraim@flashner.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.