From c645f4b3a199386d48741887685e84fe34baf285 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 16 Mar 2024 21:59:58 +0200 Subject: [PATCH] gnu: Add rust-ref-thread-local-0.1. * gnu/packages/crates-io.scm (rust-ref-thread-local-0.1): New variable. Change-Id: Ied65f12f79d61ee621f416d807532bb59a356168 --- gnu/packages/crates-io.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9e40262ef4..eaecac1aba 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -56304,6 +56304,24 @@ (define-public rust-ref-cast-test-suite-0.0.0 (description "Test suite of the ref-cast crate.") (license (list license:expat license:asl2.0)))) +(define-public rust-ref-thread-local-0.1 + (package + (name "rust-ref-thread-local") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ref_thread_local" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1w7zw42bzywh9jfhlj5dswdh79dk7bvh4mmsamw9jy40lrh1dmd0")))) + (build-system cargo-build-system) + (home-page "https://github.com/Xeiron/ref_thread_local.rs") + (synopsis "Macro for declaring thread-local `static`s") + (description "This package provides a macro for declaring thread-local +`static`s like using both of `lazy_static!` and `@code{RefCell`}") + (license license:expat))) + (define-public rust-refpool-0.4 (package (name "rust-refpool")