* gnu/packages/rust.scm (rust-slab): New variable. --- gnu/packages/rust.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index fe133c084..ff4901d0a 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -479,3 +479,24 @@ never happen. This crate also comes packed with a few traits offering extension methods to @code{Result<T, Void>} and @code{Result<Void, T>}.") (license license:expat))) + +(define-public rust-slab + (package + (name "rust-slab") + (version "0.3.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "slab" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08xw8w61zdfn1094qkq1d554vh5wmm9bqdys8gqqxc4sv2pgrd0p")))) + (build-system cargo-build-system) + (home-page "https://github.com/carllerche/slab") + (synopsis "Simple slab allocator") + (description + "Slab Allocator for Rust. Preallocate memory for values +of a given type.") + (license license:expat))) -- 2.11.0