From 907c1f33dc3d44c971043853b80eff481a3d08b2 Mon Sep 17 00:00:00 2001 From: Herman Rimm Date: Sun, 18 Feb 2024 22:02:48 +0100 Subject: [PATCH] gnu: Add rust-no-std-net-0.6. * gnu/packages/crates-io.scm (rust-no-std-net-0.6): Add variable. (rust-no-std-net-0.5): Inherit rust-no-std-net-0.6. Change-Id: I049b392a9f6d9ef0565b3bf2c1a2adb94a6acbca Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1882adbce0..f369a332f5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -43052,8 +43052,31 @@ (define-public rust-no-std-compat-0.4 make porting your crate to no_std *easy*.") (license license:expat))) +(define-public rust-no-std-net-0.6 + (package + (name "rust-no-std-net") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "no-std-net" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ravflgyh0q2142gjdz9iav5yqci3ga7gbnk4mmfcnqkrq54lya3")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-serde" ,rust-serde-1)) + #:cargo-development-inputs + (("rust-serde-test" ,rust-serde-test-1)))) + (home-page "https://github.com/dunmatt/no-std-net") + (synopsis "Rust's @code{std::net} without the @code{std}") + (description "This package provides Rust's @code{std::net} in an environment +without @code{std}.") + (license license:expat))) + (define-public rust-no-std-net-0.5 (package + (inherit rust-no-std-net-0.6) (name "rust-no-std-net") (version "0.5.0") (source @@ -43063,17 +43086,7 @@ (define-public rust-no-std-net-0.5 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 - "0lkilh0wc7big3m5lsn9wqiz2xvj21kgmpbc15z92j93n51wxkhv")))) - (build-system cargo-build-system) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-serde" ,rust-serde-1)))) - (home-page "https://github.com/dunmatt/no-std-net") - (synopsis "Rust's std::net... without the @code{std}") - (description "This package provides Rust's std::net for environment -without the @code{std}.") - (license license:expat))) + "0lkilh0wc7big3m5lsn9wqiz2xvj21kgmpbc15z92j93n51wxkhv")))))) (define-public rust-nodrop-0.1 (package