Commit Message
Jean-Pierre De Jesus DIAZ
April 2, 2024, 4:04 p.m. UTC
* gnu/packages/crates-io.scm (rust-maybe-owned-0.3): New variable. Change-Id: Ifb9737d55e15ddf5ef3a5f2e46cc91f0274dfd92 --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index df5d634191..296c98a78d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37697,6 +37697,29 @@ (define-public rust-maybe-async-0.2 async code in Rust.") (license license:expat))) +(define-public rust-maybe-owned-0.3 + (package + (name "rust-maybe-owned") + (version "0.3.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "maybe-owned" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1d3sqiv59i06k73x6p7mf294zgdfb2qkky127ipfnjj9mr9wgb2g")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/rustonaut/maybe-owned") + (synopsis "Alternative implementation of Rust's @code{Cow} type") + (description "This package provides an alternative approach of the implementation +of the Rust's @code{Cow} type: @code{MaybeOwned} and @code{MaybeOwnedMut} but +implementing the traits @code{From<T>} and @code{From<&'a T>} and does not require +@code{ToOwned}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-maybe-rayon-0.1 (package (name "rust-maybe-rayon")