unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#43705] [PATCH] gnu: Add rust-multi-default-trait-impl-0.1.
@ 2020-09-29 13:43 André Batista
  2020-09-30  8:26 ` bug#43705: " Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: André Batista @ 2020-09-29 13:43 UTC (permalink / raw)
  To: 43705


[-- Attachment #1.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #1.2: 0001-gnu-Add-rust-multi-default-trait-impl-0.1.patch --]
[-- Type: text/plain, Size: 2257 bytes --]

From 1e3ef9dba78e07d35c129be0d881a000343568fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Batista?= <nandre@riseup.net>
Date: Tue, 29 Sep 2020 09:38:21 -0300
Subject: [PATCH] gnu: Add rust-multi-default-trait-impl-0.1.
To: guix-patches@gnu.org

* gnu/packages/crates-io.scm (rust-multi-default-trait-impl-0.1): New variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7cb2fd40cb..fda2be471d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
+;;; Copyright © 2020 André Batista <nandre@riseup.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -14630,6 +14631,35 @@ checking.")
     (description
       "Chaining APIs for both self -> Self and &mut self methods.")
     (license license:expat)))
+ 
+(define-public rust-multi-default-trait-impl-0.1
+  (package
+   (name "rust-multi-default-trait-impl")
+   (version "0.1.2")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (crate-uri "multi-default-trait-impl" version))
+     (file-name
+      (string-append name "-" version ".tar.gz"))
+     (sha256
+      (base32
+       "1r6y5zb6kg655zi02yk4amkwsgds5ay9ag1dk30cls7rn3dlvvqs"))))
+   (build-system cargo-build-system)
+   (arguments
+    `(#:tests? #f ; No tests.
+      #:cargo-inputs
+      (("rust-lazy-static" ,rust-lazy-static-1)
+       ("rust-proc-macro2" ,rust-proc-macro2-1)
+       ("rust-quote" ,rust-quote-1)
+       ("rust-syn" ,rust-syn-1))))
+   (home-page "https://github.com/hainish/multi-default-trait-impl")
+   (synopsis "Define multiple implementations of trait")
+   (description
+         "This library contains two attribute macros: @code{default_trait_impl}
+which defines a default trait implementation, and @code{trait_impl} which uses
+a default trait implementation you've defined.")
+   (license license:lgpl2.1+)))
 
 (define-public rust-nasm-rs-0.1
   (package
-- 
2.28.0


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 841 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#43705: [PATCH] gnu: Add rust-multi-default-trait-impl-0.1.
  2020-09-29 13:43 [bug#43705] [PATCH] gnu: Add rust-multi-default-trait-impl-0.1 André Batista
@ 2020-09-30  8:26 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2020-09-30  8:26 UTC (permalink / raw)
  To: André Batista; +Cc: 43705-done

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

I adjusted the indentation, removed the stray space above the package
definition and re-enabled the tests. They could always be written and
added later :)

Patch pushed! Thanks.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-30  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-29 13:43 [bug#43705] [PATCH] gnu: Add rust-multi-default-trait-impl-0.1 André Batista
2020-09-30  8:26 ` bug#43705: " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).