From 4f414563bfa3498fa3dd8399c2aed724d94c37c7 Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Sun, 19 Jan 2020 16:01:57 +0300 Subject: [PATCH 110/275] gnu: Add rust-ref-cast-impl-1.0. * gnu/packages/crates-io.scm (rust-ref-cast-impl-1.0): New variable. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e01daf5c9f..c7d8de15c6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10941,6 +10941,32 @@ functionality.") "Safely cast &T to &U where the struct U contains a single field of type T.") (license (list license:asl2.0 license:expat)))) +(define-public rust-ref-cast-impl-1.0 + (package + (name "rust-ref-cast-impl") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "ref-cast-impl" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07rc752npmkyc5b8xcqk2ydbl3gxi1n4fzrq0wx9wz5qd4mvavn3")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1.0) + ("rust-quote" ,rust-quote-1.0) + ("rust-syn" ,rust-syn-1.0)))) + (home-page "https://github.com/dtolnay/ref-cast") + (synopsis "Derive implementation for @code{ref_cast::RefCast}") + (description + "Derive implementation for ref_cast::RefCast.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ref-cast-impl-0.2 (package (name "rust-ref-cast-impl") -- 2.25.0