Subject: [bug#76513] [PATCH rust-team v3 14/78] gnu: Add rust-rustybuzz-0.18.

From: Andrew Wong <[email-masked]>
Date: Sun, 2 Mar 2025 16:29:45 -0500

* gnu/packages/crates-graphics.scm (rust-rustybuzz-0.18): New variable.

Change-Id: Iec20c3415f48f5ca768e7c68e4a96ca8db6fbea8
---
 gnu/packages/crates-graphics.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 36996b2a73..f4acba88a2 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -4048,6 +4048,37 @@ (define-public rust-rgb-0.8
 first-class Rust objects.")
     (license license:expat)))
 
+(define-public rust-rustybuzz-0.18
+  (package
+    (name "rust-rustybuzz")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustybuzz" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "108igxavhzmln7h6qgfxk3bdghp8hvlc8lpbk13q6qcya76iqpf8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-bytemuck" ,rust-bytemuck-1)
+                       ("rust-core-maths" ,rust-core-maths-0.1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ("rust-ttf-parser" ,rust-ttf-parser-0.24)
+                       ("rust-unicode-bidi-mirroring" ,rust-unicode-bidi-mirroring-0.3)
+                       ("rust-unicode-ccc" ,rust-unicode-ccc-0.3)
+                       ("rust-unicode-properties" ,rust-unicode-properties-0.1)
+                       ("rust-unicode-script" ,rust-unicode-script-0.5)
+                       ("rust-wasmi" ,rust-wasmi-0.36))))
+    (home-page "https://github.com/harfbuzz/rustybuzz")
+    (synopsis "complete harfbuzz shaping algorithm port to Rust.")
+    (description
+     "This package provides a complete harfbuzz shaping algorithm port to Rust.")
+    (license license:expat)))
+
 (define-public rust-scad-1
   (package
     (name "rust-scad")
-- 
2.48.1