[bug#56298,2/7] gnu: Add rust-quick-xml-0.17.
Commit Message
From: Peter Polidoro <peter@polidoro.io>
* gnu/packages/crates-io.scm (rust-quick-xml-0.17): New variable.
---
gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Comments
On 29-06-2022 16:46, peter@polidoro.io wrote:
> + `(#:skip-build? #t
> + #:cargo-inputs
> + (("rust-encoding-rs" ,rust-encoding-rs-0.8)
> + ("rust-memchr" ,rust-memchr-2)
> + ("rust-serde" ,rust-serde-1))))))
The #:cargo-development-inputs are important for antioxidant (the new
build system intended to eventually replace cargo-build-system), to
actually run the tests. Try running "guix import crate quick-xml@0.17",
IIUC it will add the development-inputs.
(I've sent a bug report about "guix import crate ..." removing
cargo-development-inputs in the past, but I cannot find it anymore).
Also, likely you don't actually need the old version -- going by the
code in antioxidant, always using rust-quick-xml@0.22 (instead of older
versions) does not cause any problems, but since this is
cargo-build-system, you will have to patch the Cargo.toml of the
dependent to accept the latest version of rust-quick-xml.
Greetings,
Maxime.
@@ -27,6 +27,7 @@
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Evgenii Lepikhin <e.lepikhin@corp.mail.ru>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -46159,6 +46160,25 @@ (define-public rust-quick-xml-0.19
("rust-memchr" ,rust-memchr-2)
("rust-serde" ,rust-serde-1))))))
+(define-public rust-quick-xml-0.17
+ (package
+ (inherit rust-quick-xml-0.20)
+ (name "rust-quick-xml")
+ (version "0.17.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "quick-xml" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1vvjqq2q459jifb0jnn1j22sq9l7m19g0vln7m4pa4npr2ldpz5a"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-encoding-rs" ,rust-encoding-rs-0.8)
+ ("rust-memchr" ,rust-memchr-2)
+ ("rust-serde" ,rust-serde-1))))))
+
(define-public rust-quick-xml-0.12
(package
(inherit rust-quick-xml-0.20)