Subject: [PATCH 14/49] gnu: Add rust-swc-visit-macros.

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:21:33 +0200

* gnu/packages/crates-io.scm (rust-swc-visit-macros-0.2): New variable.
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 25e6f5ca3d..48e6a82653 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50278,3 +50278,35 @@ configuration file and/or environment variables.")
     (description
       "Generate Rust register maps (`struct`s) from SVD files")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-swc-visit-macros-0.2
+  (package
+    (name "rust-swc-visit-macros")
+    (version "0.2.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_visit_macros" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1w21frfma1rz111mf9yvj6wjz1kskkkm1rp8cq0hvwbrxrgq5cp3"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-inflector" ,rust-inflector-0.11)
+         ("rust-pmutil" ,rust-pmutil-0.5)
+         ("rust-proc-macro2" ,rust-proc-macro2-1)
+         ("rust-quote" ,rust-quote-1)
+         ("rust-swc-macros-common"
+          ,rust-swc-macros-common-0.3)
+         ("rust-syn" ,rust-syn-1))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis "Visitor generator for stable rustc")
+    (description
+      "Visitor generator for stable rustc")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2