Subject: [bug#47948] [PATCH 34/49] gnu: Add rust-swc-ecma-visit.

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ce52d72617..4de9bc7d3c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50992,3 +50992,34 @@ configuration file and/or environment variables.")
     (description
       "Dependency graph for the ecmascript")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-visit-0.29
+  (package
+    (name "rust-swc-ecma-visit")
+    (version "0.29.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_visit" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1zkdf68z1rl2z5s428c12fydkcsih9nzbhckc4s0fdd3jhxlmrc1"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-num-bigint" ,rust-num-bigint-0.2)
+         ("rust-swc-atoms" ,rust-swc-atoms-0.2)
+         ("rust-swc-common" ,rust-swc-common-0.10)
+         ("rust-swc-ecma-ast" ,rust-swc-ecma-ast-0.43)
+         ("rust-swc-visit" ,rust-swc-visit-0.2))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis
+      "Visitors for swc ecmascript nodes which works on stable rustc")
+    (description
+      "Visitors for swc ecmascript nodes which works on stable rustc")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2