From e2ed4b9b237f8aa0d390bdafc8fff5a97ac3554b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 9 Oct 2023 09:17:41 +0300 Subject: [PATCH] gnu: Add rust-core2-0.4. * gnu/packages/crates-io.scm (rust-core2-0.4): New variable. (rust-core2-0.3): Inherit from rust-core2-0.4. --- gnu/packages/crates-io.scm | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 79490eb18f..2551c99474 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -15385,8 +15385,30 @@ (define-public rust-core-extensions-proc-macros-1 (description "Implementation detail of the @code{core_extensions} crate.") (license (list license:expat license:asl2.0)))) +(define-public rust-core2-0.4 + (package + (name "rust-core2") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "core2" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "01f5xv0kf3ds3xm7byg78hycbanb8zlpvsfv4j47y46n3bpsg6xl")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-memchr" ,rust-memchr-2)))) + (home-page "https://github.com/bbqsrc/core2") + (synopsis "Bare essentials of @code{std::io} for use in @code{no_std}") + (description + "This package provides the bare essentials of @code{std::io} for use +in @code{no_std}. Alloc support is optional.") + (license (list license:asl2.0 license:expat)))) + (define-public rust-core2-0.3 (package + (inherit rust-core2-0.4) (name "rust-core2") (version "0.3.3") (source @@ -15395,15 +15417,8 @@ (define-public rust-core2-0.3 (uri (crate-uri "core2" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "1wzzy5iazdk5caadxvjfwrd312rbg7a55a1zpmsdrhk3kfpa77r3")))) - (build-system cargo-build-system) - (arguments `(#:cargo-inputs (("rust-memchr" ,rust-memchr-2)))) - (home-page "https://github.com/bbqsrc/core2") - (synopsis "Bare essentials of @code{std::io} for use in @code{no_std}") - (description - "This package provides the bare essentials of @code{std::io} for use -in @code{no_std}. Alloc support is optional.") - (license (list license:asl2.0 license:expat)))) + (base32 "1wzzy5iazdk5caadxvjfwrd312rbg7a55a1zpmsdrhk3kfpa77r3")))) + (arguments `(#:cargo-inputs (("rust-memchr" ,rust-memchr-2)))))) (define-public rust-cookie-store-0.19 (package