Skip to content
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

Use bindgen to generate API code #6

Open
2 of 3 tasks
wks opened this issue Aug 2, 2022 · 1 comment
Open
2 of 3 tasks

Use bindgen to generate API code #6

wks opened this issue Aug 2, 2022 · 1 comment

Comments

@wks
Copy link
Collaborator

wks commented Aug 2, 2022

  • Somewhere in mmtk-ruby we compute struct offsets using the memoffset crate. That carries a dependency on the nightly version of Rust. Remove it.
  • Use rust-bindgen to generate Rust counterparts of Ruby structs in C
  • Use cbindgen to generate the mmtk.h used in the ruby repo.
@wks
Copy link
Collaborator Author

wks commented Feb 15, 2023

We have been using cbindgen to generate the mmtk.h header since this commit: 86ff3d2

We will need to look directly into Ruby objects when we start to optimise object scanning. Then we'll use rust-bindgen to generate the binding in the other direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant