[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/32: gnu: Add rust-derive-more-0.99.
From: |
guix-commits |
Subject: |
06/32: gnu: Add rust-derive-more-0.99. |
Date: |
Tue, 7 Jul 2020 07:39:37 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 12c5d9bb44b91a14c69324b8e4f93bdda79d7aaa
Author: John Soo <jsoo1@asu.edu>
AuthorDate: Tue Jun 16 18:52:55 2020 -0700
gnu: Add rust-derive-more-0.99.
* gnu/packages/crates-io.scm (rust-derive-more-0.99): New variable.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c7c353b..e1e70d1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5071,6 +5071,44 @@ for arbitrary structs.")
(description "Internal helper library for the derive_builder crate.")
(license (list license:expat license:asl2.0))))
+(define-public rust-derive-more-0.99
+ (package
+ (name "rust-derive-more")
+ (version "0.99.9")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "derive-more" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0xizcpj39rx0474mbbx8m0xww98qh92zsg82gf52qnvbryqri299"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; Some test files missing.
+ #:cargo-inputs
+ (("rust-proc-macro2" ,rust-proc-macro2-1.0)
+ ("rust-quote" ,rust-quote-1.0)
+ ("rust-syn" ,rust-syn-1.0))
+ #:cargo-development-inputs
+ (("rust-peg" ,rust-peg-0.5)
+ ("rust-rustc-version" ,rust-rustc-version-0.2))))
+ (home-page "https://github.com/JelteF/derive_more")
+ (synopsis "Adds derive macros for more traits")
+ (description
+ "Rust has lots of builtin traits that are implemented for its basic
+types, such as @code{Add}, @code{Not}, @code{From} or @code{Display}.
+However, when wrapping these types inside your own structs or enums you lose
+the implementations of these traits and are required to recreate them. This is
+especially annoying when your own structures are very simple, such as when
+using the commonly advised newtype pattern (e.g. @code{MyInt(i32)}).
+
+This library tries to remove these annoyances and the corresponding
+boilerplate code. It does this by allowing you to derive lots of commonly used
+traits for both structs and enums.")
+ (license license:expat)))
+
(define-public rust-derive-new-0.5
(package
(name "rust-derive-new")
- branch master updated (a5dbc07 -> 4f9db56), guix-commits, 2020/07/07
- 04/32: gnu: rust-unicode-normalization-0.1: update to 0.1.11., guix-commits, 2020/07/07
- 06/32: gnu: Add rust-derive-more-0.99.,
guix-commits <=
- 01/32: gnu: Add rust-peg-runtime-0.6., guix-commits, 2020/07/07
- 05/32: gnu: rust-unicode-normalization-0.1: Don't skip build., guix-commits, 2020/07/07
- 07/32: gnu: Add rust-peg-0.5., guix-commits, 2020/07/07
- 08/32: gnu: Add rust-rls-span-0.5., guix-commits, 2020/07/07
- 10/32: gnu: Add rust-racer-cargo-metadata-0.1., guix-commits, 2020/07/07
- 11/32: gnu: Add rust-float-cmp-0.6., guix-commits, 2020/07/07
- 02/32: gnu: Add rust-peg-macros-0.6., guix-commits, 2020/07/07
- 03/32: gnu: Add rust-peg-0.6., guix-commits, 2020/07/07
- 09/32: gnu: Add rust-racer-interner-0.1., guix-commits, 2020/07/07
- 16/32: gnu: Add rust-cssparser-0.27., guix-commits, 2020/07/07