Update freetype-sys and regenerate bindings based on vendored freetype - #77
Open
jschwe wants to merge 7 commits into
Open
Update freetype-sys and regenerate bindings based on vendored freetype#77jschwe wants to merge 7 commits into
jschwe wants to merge 7 commits into
Conversation
blacklist and whitelist were renamed in bindgen.
crates.io release mapped to commit, by checking git log. The submodule is necessary to generate bindings for the correct headers, and not whatever is on the local system!
- Don't generate bindings from the headers that happen to be installed on the authors machine - Instead use the vendored dependency and its headers. - Regenerate using the latest bindgen version. Note: This changes types of `define`s from c integer types, to rust-fixed size integers. C defines don't have a fixed type, since they are just preprocessor tokens. This is a breaking API change on our side though (via bindgen), so bump the version to 0.8
This included a type change in FT_Outline_ to `ushort` members. Otherwise only minor doc changes.
jschwe
force-pushed
the
update
branch
2 times, most recently
from
May 7, 2026 20:00
0528d25 to
35235b0
Compare
freetype-sys 0.23 doesn't build with the version shipped in ubuntu 22.
Ubuntu 24 doesn't seem to ship libfreetype-dev in CI images by default.
configuration error in freetype-sys in ubuntu 22.04 CI:
```
thread 'main' (2233) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/freetype-sys-0.23.0/build.rs:21:18:
called `Result::unwrap()` on an `Err` value:
pkg-config exited with status code 1
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags freetype2 'freetype2 >= 24.3.18'
pkg-config output:
Package dependency requirement 'freetype2 >= 24.3.18' could not be satisfied.
Package 'freetype2' has version '24.1.18', required version is '>= 24.3.18'
The system library `freetype2` required by crate `freetype-sys` was not found.
The file `freetype2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.
HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `freetype2.pc`.
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The commits should be reviewed individually, and ideally not squashed.
Background:
Pending servo companion PR. One step towards updating freetype-sys in servo.