Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNOT FOR MERGE: Initial rustification of hb_direction_t. #101
Conversation
|
Worth noting that by allowing ourselves to diverge from the |
|
I'm in favour of the snippet you describe. |
|
@mbrubeck Any thoughts on this? |
3fc556c
to
fa52f25
fa52f25
to
f093dfa
|
I'm worried that this is unsafe. For example, if a newer version of Harfbuzz adds new values to the |
|
True. I guess there's a reason to separate higher-level bindings that use types like enum and provide fallible conversions between the lower-level representation. |
|
Okay. I've been thinking about this some and I'm going to close this one and propose something else. |
waywardmonkeys commentedJan 16, 2018
•
edited by larsbergstrom
Thinking about #90 ...
This is one way that we could use enums and is the result of using
--rustified-enumwithbindgen.But looking at this, there's this option as well, which I think is better:
Since
harfbuzzhas a stable API, we don't have to always runbindgenand it might be nicer to have an API that is what we'd actually want in Rust in terms of naming. (And then fixing up other issues in aharfbuzzcrate.)Thoughts?
This change is