Subject: [bug#75372] [PATCH 35/44] gnu: Add rust-xcb-0.8.

From: Divya Ranjan <[email-masked]>
Date: Sun, 5 Jan 2025 07:04:11 +0000

* gnu/packages/crates-io.scm (rust-xcb-0.8): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0bfec5facb..bc74eb282b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -92851,6 +92851,28 @@ (define-public rust-xattr-1
 extended attributes.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-xcb-0.8
+  (package
+    (name "rust-xcb")
+    (version "0.8.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xcb" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ph27r9nxyfy3hh1c7x85g6dciwxcinf6514pvw9ybhl4hzpm4ay"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-x11" ,rust-x11-2))))
+    (home-page "https://github.com/rust-x-bindings/rust-xcb")
+    (synopsis "Rust safe bindings for XCB")
+    (description "This package provides Rust safe bindings for XCB.")
+    (license license:expat)))
+
 (define-public rust-xcb-1
   (package
     (name "rust-xcb")
-- 
2.47.1