Subject: [bug#76872] [PATCH rust-team 4/9] gnu: rust-rustyline-14: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sat, 8 Mar 2025 11:50:49 -0500

* gnu/packages/crates-io.scm (rust-rustyline-14): New variable.
---
 gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++----
 1 file changed, 44 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 49ea57a60d..efc5d2a4d6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -68630,9 +68630,7 @@ (define-public rust-rustyline-15
         (base32 "0bws18zrj8i6ix27k9bhb3mb1civbz5nr72rv8xm2bljvikf1q9f"))))
     (build-system cargo-build-system)
     (arguments
-     `(;#:cargo-test-flags '("--release" "--"
-       ;                     "--skip=binding::test::size_of_event")
-       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
                        ("rust-buffer-redux" ,rust-buffer-redux-1)
                        ("rust-cfg-if" ,rust-cfg-if-1)
                        ("rust-clipboard-win" ,rust-clipboard-win-5)
@@ -68664,10 +68662,52 @@ (define-public rust-rustyline-15
      "Rustyline is a readline implementation based on the linenoise package.")
     (license license:expat)))
 
-(define-public rust-rustyline-13
+(define-public rust-rustyline-14
   (package
     (inherit rust-rustyline-15)
     (name "rust-rustyline")
+    (version "14.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustyline" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0qvyckd5hbi2cf6kw4bsng6vb6rb9dzjfy24dndzszm3dn9yh0vq"))))
+    (arguments
+     `(;#:cargo-test-flags '("--release" "--"
+       ;                     "--skip=binding::test::size_of_event")
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-buffer-redux" ,rust-buffer-redux-1)
+                       ("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-clipboard-win" ,rust-clipboard-win-5)
+                       ("rust-fd-lock" ,rust-fd-lock-4)
+                       ("rust-home" ,rust-home-0.5)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-nix" ,rust-nix-0.28)
+                       ("rust-radix-trie" ,rust-radix-trie-0.2)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-rusqlite" ,rust-rusqlite-0.31)
+                       ("rust-rustyline-derive" ,rust-rustyline-derive-0.10)
+                       ("rust-signal-hook" ,rust-signal-hook-0.3)
+                       ("rust-skim" ,rust-skim-0.10)
+                       ("rust-termios" ,rust-termios-0.3)
+                       ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+                       ("rust-unicode-width" ,rust-unicode-width-0.1)
+                       ("rust-utf8parse" ,rust-utf8parse-0.2)
+                       ("rust-windows-sys" ,rust-windows-sys-0.52))
+       #:cargo-development-inputs (("rust-assert-matches" ,rust-assert-matches-1)
+                                   ("rust-doc-comment" ,rust-doc-comment-0.3)
+                                   ("rust-env-logger" ,rust-env-logger-0.11)
+                                   ("rust-rand" ,rust-rand-0.8)
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
+
+(define-public rust-rustyline-13
+  (package
+    (inherit rust-rustyline-14)
+    (name "rust-rustyline")
     (version "13.0.0")
     (source
      (origin
-- 
2.48.1