* gnu/packages/rust.scm (rust-bitflags): 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 f2c4e254e..22ce59869 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -586,3 +586,24 @@ deleting all contents when it's dropped.") @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)))) + +(define-public rust-bitflags + (package + (name "rust-bitflags") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bitflags" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0v8hh6wdkpk9my8z8442g4hqrqf05h0qj53dsay6mv18lqvqklda")))) + (build-system cargo-build-system) + (home-page "https://github.com/rust-lang/bitflags") + (synopsis "Macro to generate structures which behave like bitflags") + (description + "Bitflags provides a macro to generate structures which +behave like bitflags.") + (license (list license:expat license:asl2.0)))) -- 2.11.0