* gnu/packages/rust.scm (rust-scoped-tls): New variable. --- gnu/packages/rust.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 404184c7b..f2c4e254e 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -564,3 +564,25 @@ deleting all contents when it's dropped.") (description "Support for matching file paths against Unix shell style patterns.") (license (list license:expat license:asl2.0)))) + +(define-public rust-scoped-tls + (package + (name "rust-scoped-tls") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "scoped-tls" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0z8lgy007ffc9rdl6rhl7jxx6imxx641fmm7i044bsb3y0nw45zl")))) + (build-system cargo-build-system) + (home-page "https://github.com/alexcrichton/scoped-tls") + (synopsis "Library implementation of the `scoped_thread_local!` macro") + (description + "Library implementation of the standard library's old +@code{scoped_thread_local!} macro for providing scoped access to thread +local storage (TLS) so any type can be stored into TLS.") + (license (list license:expat license:asl2.0)))) -- 2.11.0