Subject: [bug#75127] [PATCH 30/67] gnu: Add rust-win32job-2.

From: Jordan Moore <[email-masked]>
Date: Thu, 26 Dec 2024 18:11:06 -0500

* gnu/packages/crates-windows.scm (rust-win32job-2): New variable.

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

diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 5bce3536b5..f13375b9b8 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -971,6 +971,27 @@ (define-public rust-win-crypto-ng-0.5
     (description "Safe bindings to Windows Cryptography API: Next Generation")
     (license license:bsd-3)))
 
+(define-public rust-win32job-2
+  (package
+    (name "rust-win32job")
+    (version "2.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "win32job" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0g1blsb7ixrqjicykx82rvrymcydlsdgfwzb61x88iyrazsinasv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-thiserror" ,rust-thiserror-1)
+                       ("rust-windows" ,rust-windows-0.52))))
+    (home-page "https://github.com/ohadravid/win32job-rs")
+    (synopsis "safe API for Windows' job objects.")
+    (description "This package provides a safe API for Windows job objects.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-winapi-0.3
   (package
     (name "rust-winapi")
-- 
2.46.0