Subject: [PATCH] gnu: Add rust-crossterm-0.27

From: Andrew Jose <[email-masked]>
Date: Tue, 19 Sep 2023 16:30:50 +0530

changelog:
rust-crossterm 0.25 inherits from 0.27
rust-crossterm 0.23 inherits from 0.27
rust-crossterm 0.20 inherits from 0.27
---
 gnu/packages/crates-io.scm | 45 +++++++++++++++++++++++++++++++++-----
 1 file changed, 39 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3c83563c45..78f58ec9ae 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16385,21 +16385,22 @@ (define-public rust-crossfont-0.3
         ("rust-servo-fontconfig" ,rust-servo-fontconfig-0.5)
         ("rust-winapi" ,rust-winapi-0.3))))))
 
-(define-public rust-crossterm-0.25
+(define-public rust-crossterm-0.27
   (package
     (name "rust-crossterm")
-    (version "0.25.0")
+    (version "0.27.0")
     (source (origin
               (method url-fetch)
               (uri (crate-uri "crossterm" version))
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
-               (base32 "0rsbkkhdf61aipc06b7vpl4cw3wnxz0miizp0ms3a5rcpq7nqkp6"))))
+               (base32 "1pr413ki440xgddlmkrc4j1bfx1h8rpmll87zn8ykja1bm2gwxpl"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
-       (("rust-bitflags" ,rust-bitflags-1)
+       (("rust-bitflags" ,rust-bitflags-2)
         ("rust-crossterm-winapi" ,rust-crossterm-winapi-0.9)
+        ("rust-filedescriptor" ,rust-filedescriptor-0.8)
         ("rust-futures-core" ,rust-futures-core-0.3)
         ("rust-libc" ,rust-libc-0.2)
         ("rust-mio" ,rust-mio-0.8)
@@ -16413,6 +16414,7 @@ (define-public rust-crossterm-0.25
         ("rust-futures" ,rust-futures-0.3)
         ("rust-futures-timer" ,rust-futures-timer-3)
         ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-serial-test" ,rust-serial-test-2)
         ("rust-tokio" ,rust-tokio-1))))
     (home-page "https://github.com/crossterm-rs/crossterm")
     (synopsis "Crossplatform terminal library for manipulating terminals")
@@ -16421,9 +16423,40 @@ (define-public rust-crossterm-0.25
 terminals.")
     (license license:expat)))
 
+(define-public rust-crossterm-0.25
+  (package
+    (inherit rust-crossterm-0.27)
+    (name "rust-crossterm")
+    (version "0.25.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "crossterm" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 "0rsbkkhdf61aipc06b7vpl4cw3wnxz0miizp0ms3a5rcpq7nqkp6"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-crossterm-winapi" ,rust-crossterm-winapi-0.9)
+        ("rust-futures-core" ,rust-futures-core-0.3)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-mio" ,rust-mio-0.8)
+        ("rust-parking-lot" ,rust-parking-lot-0.12)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-signal-hook" ,rust-signal-hook-0.3)
+        ("rust-signal-hook-mio" ,rust-signal-hook-mio-0.2)
+        ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs
+       (("rust-async-std" ,rust-async-std-1)
+        ("rust-futures" ,rust-futures-0.3)
+        ("rust-futures-timer" ,rust-futures-timer-3)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-tokio" ,rust-tokio-1))))))
+
 (define-public rust-crossterm-0.23
   (package
-    (inherit rust-crossterm-0.25)
+    (inherit rust-crossterm-0.27)
     (name "rust-crossterm")
     (version "0.23.2")
     (source (origin
@@ -16454,7 +16487,7 @@ (define-public rust-crossterm-0.23
 
 (define-public rust-crossterm-0.20
   (package
-    (inherit rust-crossterm-0.25)
+    (inherit rust-crossterm-0.27)
     (name "rust-crossterm")
     (version "0.20.0")
     (source
-- 
2.34.1