diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 81c564f2d8..d706c9b9cd 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2021 Alexandru-Sergiu Marton ;;; Copyright © 2021 Antero Mejr +;;; Copyright © 2021 Maxim Cournoyer ;;; ;;; This file is part of GNU Guix. ;;; @@ -64,7 +65,8 @@ (define-module (gnu packages crates-io) #:use-module (gnu packages version-control) #:use-module (gnu packages web) #:use-module (gnu packages xml) - #:use-module (gnu packages xorg)) + #:use-module (gnu packages xorg) + #:use-module (srfi srfi-1)) ;;; ;;; Please: Try to add new module packages in alphabetic order. @@ -35445,10 +35447,10 @@ (define-public rust-rustdoc-stripper-0.1 "This package provides a tool to manipulate rustdoc comments.") (license license:asl2.0))) -(define-public rust-rustfix-0.4 +(define-public rust-rustfix-0.5 (package (name "rust-rustfix") - (version "0.4.6") + (version "0.5.1") (source (origin (method url-fetch) @@ -35457,12 +35459,12 @@ (define-public rust-rustfix-0.4 (string-append name "-" version ".tar.gz")) (sha256 (base32 - "01zn0ysnass3mmrhxk90584y713vjfq1x97mi4saac99g9vsql3i")))) + "0kkhfab60747zpmn8jwfdwl9a2s4rqiq7yjjfs7yppfwp9s0pigj")))) (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs - (("rust-failure" ,rust-failure-0.1) + (("rust-anyhow" ,rust-anyhow-1) ("rust-log" ,rust-log-0.4) ("rust-serde" ,rust-serde-1) ("rust-serde-json" ,rust-serde-json-1)) @@ -35479,6 +35481,25 @@ (define-public rust-rustfix-0.4 "Automatically apply the suggestions made by rustc.") (license (list license:expat license:asl2.0)))) +(define-public rust-rustfix-0.4 + (package/inherit rust-rustfix-0.5 + (name "rust-rustfix") + (version "0.4.6") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustfix" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "01zn0ysnass3mmrhxk90584y713vjfq1x97mi4saac99g9vsql3i")))) + (arguments + (substitute-keyword-arguments (package-arguments rust-rustfix-0.5) + ((#:cargo-inputs cargo-inputs) + `(("rust-failure" ,rust-failure-0.1) + ,@(alist-delete "rust-anyhow" cargo-inputs))))))) + (define-public rust-rustls-0.19 (package (name "rust-rustls")