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

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

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bbb70df870..6a714cc265 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51054,3 +51054,39 @@ configuration file and/or environment variables.")
     (description
       "Easily manage values related to enum.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-ecma-parser-0.54
+  (package
+    (name "rust-swc-ecma-parser")
+    (version "0.54.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_ecma_parser" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0ziwl0wx56f9xmibfdns0jd9p8q0p9mi3xzxdli2j05ki8m7897x"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-either" ,rust-either-1)
+         ("rust-enum-kind" ,rust-enum-kind-0.2)
+         ("rust-fxhash" ,rust-fxhash-0.2)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-num-bigint" ,rust-num-bigint-0.2)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-smallvec" ,rust-smallvec-1)
+         ("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-ecma-visit" ,rust-swc-ecma-visit-0.29)
+         ("rust-unicode-xid" ,rust-unicode-xid-0.2))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis "Feature-complete es2019 parser.")
+    (description "Feature-complete es2019 parser.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2