Subject: [PATCH 20/49] gnu: Add rust-swc-common.

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

* gnu/packages/crates-io.scm (rust-swc-common-0.10): New variable.
---
 gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c215b6560a..348a64696b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50457,3 +50457,51 @@ configuration file and/or environment variables.")
     (synopsis "Macros for ast nodes.")
     (description "Macros for ast nodes.")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-swc-common-0.10
+  (package
+    (name "rust-swc-common")
+    (version "0.10.17")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "swc_common" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1z3zj62cy08459n3csb4cs3ybc0awrnr2sb1l31jsvpgmqhhaxh7"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-arbitrary" ,rust-arbitrary-0.4)
+         ("rust-ast-node" ,rust-ast-node-0.7)
+         ("rust-atty" ,rust-atty-0.2)
+         ("rust-cfg-if" ,rust-cfg-if-0.1)
+         ("rust-either" ,rust-either-1)
+         ("rust-from-variant" ,rust-from-variant-0.1)
+         ("rust-fxhash" ,rust-fxhash-0.2)
+         ("rust-log" ,rust-log-0.4)
+         ("rust-num-bigint" ,rust-num-bigint-0.2)
+         ("rust-once-cell" ,rust-once-cell-1)
+         ("rust-owning-ref" ,rust-owning-ref-0.4)
+         ("rust-parking-lot" ,rust-parking-lot-0.7)
+         ("rust-scoped-tls" ,rust-scoped-tls-1)
+         ("rust-serde" ,rust-serde-1)
+         ("rust-sourcemap" ,rust-sourcemap-6)
+         ("rust-string-cache" ,rust-string-cache-0.8)
+         ("rust-swc-eq-ignore-macros"
+          ,rust-swc-eq-ignore-macros-0.1)
+         ("rust-swc-visit" ,rust-swc-visit-0.2)
+         ("rust-termcolor" ,rust-termcolor-1)
+         ("rust-unicode-width" ,rust-unicode-width-0.1))
+        #:cargo-development-inputs
+        (("rust-rayon" ,rust-rayon-1)
+         ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page
+      "https://github.com/swc-project/swc.git")
+    (synopsis
+      "Common utilities for the swc project.")
+    (description
+      "Common utilities for the swc project.")
+    (license (list license:asl2.0 license:expat))))
-- 
2.29.2