vislyhq / stretch

High performance flexbox implementation written in rust
https://vislyhq.github.io/stretch/
MIT License
1.98k stars 107 forks source link

C-API bindings #35

Open Robert-M-Muench opened 5 years ago

Robert-M-Muench commented 5 years ago

Cross-Posting because #6 is closed...

Any planned progress on the C-API? I don't have any Rust experience... so no idea how interfacing Rust and C works.

IMO a C-API should be top-priority because not everyone is doing Web stuff...

emilsjolander commented 5 years ago

Hey there! bindings/swift should probably be refactored to split out the rust binding code from the swift specific code as the rust binding code is a C api. If you want to help I would suggest moving the rust from bindings/swift into bindings/c and then also making sure the swift bindings link to the new location, maybe just using symlinks is easiest. No code changes should be needed in rust or swift.

Let me know if you run into any issues, I'm here to help!