[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61561] [PATCH 2/5] gnu: add rust-downcast
From: |
Steve George |
Subject: |
[bug#61561] [PATCH 2/5] gnu: add rust-downcast |
Date: |
Thu, 16 Feb 2023 23:01:00 +0000 |
* gnu/packages/crates-io.scm (rust-downcast-0.11): New variable.
---
gnu/packages/crates-io.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 355c8ef761..180b0838a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17761,6 +17761,28 @@ (define-public rust-document-features-0.2
@code{Cargo.toml}.")
(license (list license:expat license:asl2.0))))
+(define-public rust-downcast-0.11
+ (package
+ (name "rust-downcast")
+ (version "0.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "downcast" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1wa78ahlc57wmqyq2ncr80l7plrkgz57xsg7kfzgpcnqac8gld8l"))))
+ (build-system cargo-build-system)
+ (arguments
+ `( #:skip-build? #f))
+ (home-page "https://github.com/fkoep/downcast-rs")
+ (synopsis
+ "Trait for downcasting trait objects back to their original types")
+ (description
+ "A trait, and utilities, for downcasting trait objects back
+to their original types. The same as the rust-downcast-rs crate.")
+ (license license:expat)))
+
(define-public rust-downcast-rs-1
(package
(name "rust-downcast-rs")
@@ -42372,7 +42394,7 @@ (define-public rust-pretty-assertions-0.5
("rust-difference" ,rust-difference-2))))))
(define-public rust-pretty-assertions-0.4
- (package
+ (package
(inherit rust-pretty-assertions-0.6)
(name "rust-pretty-assertions")
(version "0.4.1")
--
2.39.1