Subject: [bug#76574] [PATCH 2/9] gnu: Add rust-newline-converter-0.2.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 26 Feb 2025 01:00:39 +0100

* gnu/packages/crates-io.scm (rust-newline-converter-0.2): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1d2cbed1ce..ae91e6310d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45984,6 +45984,27 @@ (define-public rust-newline-converter-0.3
     (description "This package provides a newline byte converter library.")
     (license license:expat)))
 
+(define-public rust-newline-converter-0.2
+  (package
+    (inherit rust-newline-converter-0.3)
+    (name "rust-newline-converter")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "newline-converter" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03y000bbxnwzb7aipxyw7gm68b1bd8dv7illz03l4qw7bjfx0w8z"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-unicode-segmentation" ,rust-unicode-segmentation-1))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-fancy-regex" ,rust-fancy-regex-0.10)
+        ("rust-lazy-regex" ,rust-lazy-regex-2)
+        ("rust-once-cell" ,rust-once-cell-1))))))
+
 (define-public rust-newsblur-api-0.1
   (package
     (name "rust-newsblur-api")
-- 
2.48.1