-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deps: Upgrade freetype-sys
to version 0.21
#258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that bundling HarfBuzz should imply that FreeType is automatically bundled as well. Perhaps a user only wants to bundle HarfBuzz, but use the system FreeType. This change would make that impossible.
Also, IIRC, if you are building harfbuzz with freetype support, it needs the freetype headers, which this wouldn't provide for the build, right? |
I think that's why I filed #235. |
|
harfbuzz-sys/Cargo.toml
Outdated
optional = true | ||
|
||
[features] | ||
default = ["coretext", "directwrite", "freetype"] | ||
bundled = [] | ||
freetype-bundled = ["freetype-sys/bundled"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't thin you need another feature for this. Features are additive, so one should just need to make sure that freetype-sys is has the bundled feature when compiling. This is something that someone using rust-harfbuzz can do without having to expose a new feature here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the freetype-bundled
feature be exposed in the harfbuzz
wrapper only then, since features of subdependencies can't be specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe it's possible in CLI to enable features of sub dependencies (it is possible in Cargo.toml
, though!)
Since the packaged freetype version on Ubuntu 20 is 2.11.1 which is lower than the required freetype version for |
freetype-sys
to version 0.21
230080a
to
a544953
Compare
I've modified this branch to simply update to version 0.21 of
|
freetype-sys
to version 0.21freetype-sys
to version 0.21
Oh! I did not know that feature syntax was possible - though, how should #235 be done? |
This needs a bit of exploration I think. I'm sure other crates have run into this issue and we should check what they do. |
I had to patch harfbuzz_rs to do https://github.com/narodnik/hbrs2/blob/master/build.rs#L22
Right now this is a blocker for me to switch to harfbuzz_sys |
Integrate PistonDevelopers/freetype-sys@b785722.