guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

41/53: gnu: Add rust-thread-local.


From: guix-commits
Subject: 41/53: gnu: Add rust-thread-local.
Date: Wed, 28 Aug 2019 09:55:07 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit d154192fa99ebb10ee25ef9f53df8960a49d5c8c
Author: Efraim Flashner <address@hidden>
Date:   Wed Aug 28 16:36:16 2019 +0300

    gnu: Add rust-thread-local.
    
    * gnu/packages/crates-io.scm (rust-thread-local): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c389fc8..1c53d80 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1538,6 +1538,28 @@ bindings are a small wrapper around the raw C functions, 
which converts integer
 return values to @code{std::io::Result} to indicate success or failure.")
     (license license:expat)))
 
+(define-public rust-thread-local
+  (package
+    (name "rust-thread-local")
+    (version "0.3.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "thread_local" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "06rzik99p8c5js8238yhc8rk6np543ylb1dy9nrw5v80j0r3xdf6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+      (("rust-lazy-static" ,rust-lazy-static))))
+    (home-page "https://github.com/Amanieu/thread_local-rs";)
+    (synopsis "Per-object thread-local storage")
+    (description "Per-object thread-local storage")
+    (license (list license:asl2.0
+                   license:expat))))
+
 (define-public rust-typenum
   (package
     (name "rust-typenum")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]