Subject: [PATCH 41/49] gnu: Add rust-swc-ecma-ast.

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

* gnu/packages/crates-io.scm (rust-swc-ecma-ast-0.43): 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 d9e3c51ca5..425457fb67 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51213,3 +51213,34 @@ configuration file and/or environment variables.")
     (synopsis "String based enum.")
     (description "String based enum.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-ast-0.43
+  (package
+    (name "rust-swc-ecma-ast")
+    (version "0.43.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_ast" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "07pqinjyhaly9nbx97xf5j1j82vwi5wivhjvks8ym8c7lfwb0644"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-arbitrary" ,rust-arbitrary-0.4)
+         ("rust-is-macro" ,rust-is-macro-0.1)
+         ("rust-num-bigint" ,rust-num-bigint-0.2)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-string-enum" ,rust-string-enum-0.3)
+         ("rust-swc-atoms" ,rust-swc-atoms-0.2)
+         ("rust-swc-common" ,rust-swc-common-0.10))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis "Ecmascript ast.")
+    (description "Ecmascript ast.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2