Subject: [PATCH rust-team 44/77] gnu: Add rust-pdf-writer-0.12.

From: Andrew Wong <[email-masked]>
Date: Sun, 23 Feb 2025 15:21:35 -0500

* gnu/packages/crates-io.scm (rust-pdf-writer-0.12): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5ea8e9592f..0276d9d27c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53864,6 +53864,29 @@ (define-public rust-pcsc-sys-1
      "This package provides Low-level bindings to the PC/SC C API.")
     (license license:expat)))
 
+(define-public rust-pdf-writer-0.12
+  (package
+    (name "rust-pdf-writer")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pdf-writer" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mdi4s5f164dbhczi5mvjz2z4q2s73qhdvwqyf9nzq3d45ykrw2x"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-itoa" ,rust-itoa-1)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-ryu" ,rust-ryu-1))))
+    (home-page "https://github.com/typst/pdf-writer")
+    (synopsis "step-by-step PDF writer.")
+    (description "This package provides a step-by-step PDF writer.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pdqselect-0.1
   (package
     (name "rust-pdqselect")
-- 
2.48.1