guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

105/276: gnu: rust-pin-project-lite-0.2: Update to 0.2.13.


From: guix-commits
Subject: 105/276: gnu: rust-pin-project-lite-0.2: Update to 0.2.13.
Date: Wed, 18 Oct 2023 04:49:36 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit d528d4da85ccb5ceb4fb86f931391462a406a89f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 2 08:05:24 2023 +0300

    gnu: rust-pin-project-lite-0.2: Update to 0.2.13.
    
    * gnu/packages/crates-io.scm (rust-pin-project-lite-0.2): Update to
    0.2.13.
    [source]: Change snippet to not require exact version of dependencies.
    [cargo-development-inputs]: Add rust-once-cell-1, rust-proc-macro2-1,
    rust-serde-1, rust-toml-0.5.
---
 gnu/packages/crates-io.scm | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 21519015d1..85f98cd186 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48496,28 +48496,30 @@ crate.")
 (define-public rust-pin-project-lite-0.2
   (package
     (name "rust-pin-project-lite")
-    (version "0.2.9")
+    (version "0.2.13")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pin-project-lite" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "05n1z851l356hpgqadw4ar64mjanaxq1qlwqsf2k05ziq8xax9z0"))
+        (base32 "0n0bwr5qxlf0mhn2xkl36sy55118s9qmvx2yl5f3ixkb007lbywa"))
        (modules '((guix build utils)))
        (snippet
-        '(substitute* "Cargo.toml"
-           (("\\[dev-dependencies.rustversion\\]" m)
-            (string-append "
-[dev-dependencies.macrotest]
-version = \"1\"
-" m))))))
+        '(begin (substitute* "Cargo.toml"
+                  (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                   (string-append "\"^" version)))))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-development-inputs
        (("rust-macrotest" ,rust-macrotest-1)
+        ("rust-once-cell" ,rust-once-cell-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
         ("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde" ,rust-serde-1)
         ("rust-static-assertions" ,rust-static-assertions-1)
+        ("rust-toml" ,rust-toml-0.5)
         ("rust-trybuild" ,rust-trybuild-1))))
     (home-page "https://github.com/taiki-e/pin-project-lite";)
     (synopsis "Lightweight version of pin-project")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]