2019-03-23 19:28:40 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
bindgen bindings.h -o src/lib.rs \
|
2019-03-24 21:08:14 +03:00
|
|
|
--no-layout-tests \
|
2019-03-23 19:28:40 +03:00
|
|
|
--no-doc-comments \
|
|
|
|
--raw-line "#![allow(non_snake_case)]" \
|
|
|
|
--raw-line "#![allow(non_camel_case_types)]" \
|
|
|
|
--raw-line "#![allow(non_upper_case_globals)]" \
|
2019-07-06 18:13:22 +03:00
|
|
|
--raw-line "#![allow(clippy::unreadable_literal)]" \
|
2021-03-25 20:05:34 +03:00
|
|
|
--raw-line "#![allow(clippy::upper_case_acronyms)]" \
|
2019-03-23 19:28:40 +03:00
|
|
|
--default-enum-style rust \
|
|
|
|
--generate=functions,types,vars \
|
2023-05-30 07:22:59 +03:00
|
|
|
--allowlist-function="hb_.*" \
|
|
|
|
--allowlist-type="hb_.*" \
|
2019-03-23 19:28:40 +03:00
|
|
|
-- -Iharfbuzz/src -I../freetype/freetype2/include
|