Subject: [bug#76431] [PATCH 1/3] gnu: Add rust-ansi-to-html-0.1.

From: Andrew Wong <[email-masked]>
Date: Thu, 20 Feb 2025 01:43:20 -0500

* gnu/packages/crates-io.scm (rust-ansi-to-html-0.1): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 50db1a02e8..cf237955fd 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1805,6 +1805,29 @@ (define-public rust-ansi-str-0.8
 with ANSI strings.")
     (license license:expat)))
 
+(define-public rust-ansi-to-html-0.1
+  (package
+    (name "rust-ansi-to-html")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ansi-to-html" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "18kwlgr3vfsij8gvl7vxw11yl628b1s8z2pldh73z4zzq2693gf7"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-thiserror" ,rust-thiserror-1))))
+    (home-page
+     "https://github.com/Aloso/to-html/tree/master/crates/ansi-to-html")
+    (synopsis "ANSI escape codes to HTML converter")
+    (description "This package provides ANSI escape codes to HTML converter.")
+    (license license:expat)))
+
 (define-public rust-ansi-width-0.1
   (package
     (name "rust-ansi-width")
-- 
2.48.1