From 156b77327e8a08cdaa0f39300af4914755028b0d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 4 Mar 2025 16:32:03 -0700 Subject: [PATCH] [fontations] Don't derive Copy et al since our types are not --- src/fontations/lib.rs | 1 - src/fontations/meson.build | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index b90bfab2c..6423b82a5 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -78,7 +78,6 @@ extern "C" fn _hb_fontations_get_glyph_h_advances( } } - fn _hb_fontations_font_funcs_create() -> *mut hb_font_funcs_t { static static_ffuncs: AtomicPtr = AtomicPtr::new(null_mut()); diff --git a/src/fontations/meson.build b/src/fontations/meson.build index fd1d58dcd..27878c2cf 100644 --- a/src/fontations/meson.build +++ b/src/fontations/meson.build @@ -4,7 +4,10 @@ hb_rs = rust.bindgen( input : '../hb.h', output : 'hb.rs', include_directories: incsrc, - args : ['--allowlist-function=hb_.*', '--allowlist-type=hb_.*'], + args : ['--allowlist-function=hb_.*', + '--allowlist-type=hb_.*', + '--no-copy=hb_.*', + ], #args : ['--no-rustfmt-bindings'], )