From 4c8f1510ff4891bff52d28e8892360b7e598fbb7 Mon Sep 17 00:00:00 2001 From: techchud Date: Mon, 1 Sep 2025 20:08:02 -0500 Subject: rust-thiserror readded --- unlustig.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/unlustig.scm b/unlustig.scm index 168e8a2..736cae3 100644 --- a/unlustig.scm +++ b/unlustig.scm @@ -2230,3 +2230,47 @@ See winapi for types and constants.") @code{#[derive(Serialize, Deserialize)]}.") (license (list license:expat license:asl2.0)))) +(define-public rust-thiserror-1 + (package + (inherit rust-thiserror-2) + (name "rust-thiserror") + (version "1.0.69") + (source + (origin + (method url-fetch) + (uri (crate-uri "thiserror" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0lizjay08agcr5hs9yfzzj6axs53a2rgx070a1dsi3jpkcrzbamn")))) + (arguments + `(#:cargo-inputs + (("rust-thiserror-impl" ,rust-thiserror-impl-1)) + #:cargo-development-inputs + (("rust-anyhow" ,rust-anyhow-1) + ("rust-ref-cast" ,rust-ref-cast-1) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-trybuild" ,rust-trybuild-1)))))) + +(define-public rust-thiserror-2 + (package + (name "rust-thiserror") + (version "2.0.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "thiserror" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1k5j0ri0kjrnlblv5ikaglbkg1sxxwh0qrxbidxgc38rs0zn8wph")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-thiserror-impl" ,rust-thiserror-impl-2)) + #:cargo-development-inputs (("rust-anyhow" ,rust-anyhow-1) + ("rust-ref-cast" ,rust-ref-cast-1) + ("rust-rustversion" ,rust-rustversion-1) + ("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/dtolnay/thiserror") + (synopsis "derive(Error)") + (description "This package provides @code{derive(Error)} in Rust.") + (license (list license:expat license:asl2.0)))) + -- cgit v1.2.3