Subject: [PATCH 1/7] gnu: Add rust-chic-1.

From: "Suhail Singh" <[email-masked]>
Date: Sun, 04 Aug 2024 12:39:25 -0400

* gnu/packages/crates-io.scm (rust-chic-1): New variable.
(rust-annotate-snippets-0.6): New variable.

Change-Id: Ibf939b8a15a9135a66bf41e3a39ed1c25c32dbaf
---
 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 22c6136852..757bdfe3f1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1727,6 +1727,27 @@ (define-public rust-annotate-snippets-0.9
                                    ("rust-toml" ,rust-toml-0.5)
                                    ("rust-yansi-term" ,rust-yansi-term-0.1))))))
 
+(define-public rust-annotate-snippets-0.6
+  (package
+    (name "rust-annotate-snippets")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "annotate-snippets" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "19x7ldklprdgf8pam8b3lfhrxqw5yldcvk5j0bw2agsajbj1q0n7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.11))))
+    (home-page "https://github.com/rust-lang/annotate-snippets-rs")
+    (synopsis "Library for building code annotations")
+    (description
+     "This package provides Library for building code annotations.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-ansi-parser-0.8
   (package
     (name "rust-ansi-parser")
@@ -12259,6 +12280,25 @@ (define-public rust-chrono-0.4
     (description "Date and time library for Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-chic-1
+  (package
+    (name "rust-chic")
+    (version "1.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "chic" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "037pkdccj25gr4my8fq1qni9v87rydpyhfi2naf86mimkxhxpdd5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-annotate-snippets" ,rust-annotate-snippets-0.6))))
+    (home-page "https://github.com/yoshuawuyts/chic")
+    (synopsis "Pretty parser error reporting")
+    (description "This package provides Pretty parser error reporting.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-chrono-humanize-0.2
   (package
     (name "rust-chrono-humanize")
-- 
2.46.0