[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: gnu: Add rust-redox-syscall, rust-thread-id.
From: |
guix-commits |
Subject: |
01/05: gnu: Add rust-redox-syscall, rust-thread-id. |
Date: |
Mon, 2 Sep 2019 08:55:18 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 76ee4446fdb214a35972848544b09ea555931a30
Author: Efraim Flashner <address@hidden>
Date: Mon Sep 2 15:12:13 2019 +0300
gnu: Add rust-redox-syscall, rust-thread-id.
* gnu/packages/crates-io.scm (rust-redox-syscall, rust-thread-id): New
variables.
---
gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c3d2419..a4d2e17 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1413,6 +1413,28 @@ and @code{ptrdistance}.")
(license (list license:asl2.0
license:expat))))
+;; This package requires features which are unavailable
+;; on the stable releases of Rust.
+(define-public rust-redox-syscall ; guix upstreamable
+ (package
+ (name "rust-redox-syscall")
+ (version "0.1.56")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "redox_syscall" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "110y7dyfm2vci4x5vk7gr0q551dvp31npl99fnsx2fb17wzwcf94"))))
+ (build-system cargo-build-system)
+ (home-page "https://gitlab.redox-os.org/redox-os/syscall")
+ (synopsis "Rust library to access raw Redox system calls")
+ (description "This package provides a Rust library to access raw Redox
+system calls.")
+ (properties '((hidden? . #t)))
+ (license license:expat)))
+
(define-public rust-regex-syntax
(package
(name "rust-regex-syntax")
@@ -1933,6 +1955,32 @@ 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-id
+ (package
+ (name "rust-thread-id")
+ (version "3.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "thread-id" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1h90v19fjz3x9b25ywh68z5yf2zsmm6h5zb4rl302ckbsp4z9yy7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc)
+ ("rust-redox-syscall" ,rust-redox-syscall)
+ ("rust-winapi" ,rust-winapi))))
+ (home-page "https://github.com/ruuda/thread-id")
+ (synopsis "Get a unique ID for the current thread in Rust")
+ (description
+ "For diagnostics and debugging it can often be useful to get an ID that is
+different for every thread.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-thread-local
(package
(name "rust-thread-local")
- branch master updated (8786fec -> eb98d5a), guix-commits, 2019/09/02
- 01/05: gnu: Add rust-redox-syscall, rust-thread-id.,
guix-commits <=
- 04/05: gnu: Add rust-heapsize-0.3., guix-commits, 2019/09/02
- 03/05: gnu: Add rust-owning-ref., guix-commits, 2019/09/02
- 05/05: gnu: Add rust-heapsize-plugin, rust-language-tags., guix-commits, 2019/09/02
- 02/05: gnu: Add rust-scoped-threadpool., guix-commits, 2019/09/02