guix-commits
[Top][All Lists]
Advanced

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

111/194: gnu: Add rust-tokio-macros-2.


From: guix-commits
Subject: 111/194: gnu: Add rust-tokio-macros-2.
Date: Tue, 3 Oct 2023 14:57:41 -0400 (EDT)

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

commit e04520b8f66ec32d6fd396e9c1a924763309f996
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 2 08:10:48 2023 +0300

    gnu: Add rust-tokio-macros-2.
    
    * gnu/packages/crates-io.scm (rust-tokio-macros-2): New variable.
    (rust-tokio-macros-1): Inherit from rust-tokio-macros-2.
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4c63daf724..c562c5bf35 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -71418,30 +71418,51 @@ futures efficiently")
 operations.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-tokio-macros-1
+(define-public rust-tokio-macros-2
   (package
     (name "rust-tokio-macros")
-    (version "1.7.0")
+    (version "2.1.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "tokio-macros" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32
-         "1ds34qsfvgf63cjgdx3gr4pl7i76fifyar15ksbillcc8hpzfmxm"))))
+        (base32 "0pk7y9dfanab886iaqwcbri39jkw33kgl7y07v0kg1pp8prdq2v3"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
+     `(#:cargo-test-flags '("--release" "--lib")
        #:cargo-inputs
        (("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
-        ("rust-syn" ,rust-syn-1))))
+        ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs
+       (("rust-tokio" ,rust-tokio-1))))
     (home-page "https://tokio.rs";)
     (synopsis "Tokio's proc macros")
     (description "This package provides Tokio's proc macros.")
     (license license:expat)))
 
+(define-public rust-tokio-macros-1
+  (package
+    (inherit rust-tokio-macros-2)
+    (name "rust-tokio-macros")
+    (version "1.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tokio-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1ds34qsfvgf63cjgdx3gr4pl7i76fifyar15ksbillcc8hpzfmxm"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))))
+
 (define-public rust-tokio-macros-0.3
   (package
     (inherit rust-tokio-macros-1)



reply via email to

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