Subject: [PATCH 12/13] gnu: Add [email-masked]

From: David Hoppenbrouwers <[email-masked]>
Date: Wed, 21 May 2025 18:19:54 +0200

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6554a2ba79..6d8b955787 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74529,6 +74529,47 @@ (define-public rust-serial-windows-0.4
      "This package provides Serial port implementation for Windows.")
     (license license:expat)))
 
+(define-public rust-serialport-4
+  (package
+    (name "rust-serialport")
+    (version "4.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "serialport" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0aqaig121lm034irzal6j9dyg7jpf4hczrjlmf5yzxka9ycbrc6d"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
+                       ("rust-core-foundation" ,rust-core-foundation-0.10)
+                       ("rust-core-foundation-sys" ,rust-core-foundation-sys-0.8)
+                       ("rust-io-kit-sys" ,rust-io-kit-sys-0.4)
+                       ("rust-libudev" ,rust-libudev-0.3)
+                       ("rust-mach2" ,rust-mach2-0.4)
+                       ("rust-scopeguard" ,rust-scopeguard-1)
+                       ("rust-unescaper" ,rust-unescaper-0.1))
+       #:cargo-development-inputs (("rust-assert-hex" ,rust-assert-hex-0.4)
+                                   ("rust-clap" ,rust-clap-3)
+                                   ("rust-envconfig" ,rust-envconfig-0.10)
+                                   ("rust-libc" ,rust-libc-0.2.163)
+                                   ("rust-os-str-bytes" ,rust-os-str-bytes-6)
+                                   ("rust-quickcheck" ,rust-quickcheck-1)
+                                   ("rust-quickcheck-macros" ,rust-quickcheck-macros-1)
+                                   ("rust-rstest" ,rust-rstest-0.12)
+                                   ("rust-rstest-reuse" ,rust-rstest-reuse-0.6)
+                                   ("rust-rustversion" ,rust-rustversion-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list eudev))
+    (home-page "https://github.com/serialport/serialport-rs")
+    (synopsis "Cross-platform serial port library in Rust")
+    (description
+     "This package provides a general-purpose cross-platform serial port
+library for Rust.  It provides a blocking I/O interface and port enumeration
+on POSIX and Windows systems.")
+    (license license:expat)))
+
 (define-public rust-servo-arc-0.3
   (package
     (name "rust-servo-arc")
-- 
2.49.0