diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-05-22 16:26:30 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-08-14 19:37:51 +0300 |
commit | 68c361cffc9ae135f8aad74e6a0ebe15db214447 (patch) | |
tree | 43b1d7662930976dae0793de331eb275abfca731 /gnu/packages | |
parent | 7c89b4815a8e079eae6527da7a7d2f44799ba742 (diff) | |
download | guix-68c361cffc9ae135f8aad74e6a0ebe15db214447.tar.gz |
gnu: Add rust-as-slice-0.2.
* gnu/packages/crates-io.scm (rust-as-slice-0.2): New variable. (rust-as-slice-0.1): Inherit from rust-as-slice-0.2.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 8f5c283c6b..31de8c69dc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -4019,8 +4019,29 @@ library for Rust.") "This is a Rust library for parsing and generating ASN.1 data (DER only).") (license license:bsd-3))) +(define-public rust-as-slice-0.2 + (package + (name "rust-as-slice") + (version "0.2.1") + (source (origin + (method url-fetch) + (uri (crate-uri "as-slice" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "05j52y1ws8kir5zjxnl48ann0if79sb56p9nm76hvma01r7nnssi")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))) + (home-page "https://github.com/japaric/as-slice") + (synopsis "AsSlice and AsMutSlice traits") + (description "This package provides @code{AsSlice} and @code{AsMutSlice} +traits.") + (license (list license:expat license:asl2.0)))) + (define-public rust-as-slice-0.1 (package + (inherit rust-as-slice-0.2) (name "rust-as-slice") (version "0.1.5") (source @@ -4031,18 +4052,12 @@ library for Rust.") (sha256 (base32 "1q3a9494ikaq38zjg5px5gwwrbdgnyj23b505224njlmwd4knh25")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-generic-array-0.14" ,rust-generic-array-0.14) ("rust-generic-array-0.13" ,rust-generic-array-0.13) ("rust-generic-array-0.12" ,rust-generic-array-0.12) - ("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))) - (home-page "https://github.com/japaric/as-slice") - (synopsis "AsSlice and AsMutSlice traits") - (description "This package provides @code{AsSlice} and @code{AsMutSlice} -traits.") - (license (list license:expat license:asl2.0)))) + ("rust-stable-deref-trait" ,rust-stable-deref-trait-1)))))) (define-public rust-ascii-1 (package |