Skip to content

Generate placeholder for .h implementation #440

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

Closed
Yamakaky opened this issue Jan 25, 2017 · 7 comments
Closed

Generate placeholder for .h implementation #440

Yamakaky opened this issue Jan 25, 2017 · 7 comments

Comments

@Yamakaky
Copy link
Contributor

Use case: implement in Rust the functions defined in a .h. Currently I use bindgen + manual modifications (no_mangle, unimplemented!()).

@emilio
Copy link
Contributor

emilio commented Jan 25, 2017

You mean to generate a .h file from a rust file, right?

@emilio
Copy link
Contributor

emilio commented Jan 25, 2017

Ohh, ok, the other way around, I see

@emilio
Copy link
Contributor

emilio commented Jan 25, 2017

I think this should be sort of trivial once we have #429. We'd only have to change the code generation for functions after that.

@Yamakaky
Copy link
Contributor Author

@Zorvalt
Copy link

Zorvalt commented Nov 14, 2020

Is there any update on this ? I need to implement a rust library based on a large C header and did not find an appropriate tool to generate those placeholders. For now, I'm doing it by hand, based on what bindgen normally outputs, and it's long... Does someone has a better solution ?

@amanjeev
Copy link
Member

Triage note:

It has been long and the example url that is mentioned in the comment above is gone.

To get clarification -

  • is this still needed?
  • is it only about generating skeleton fns with unimplemented!?

@amanjeev
Copy link
Member

We have not heard back in a while. I am closing this for now. Please reopen if this is needed again. Thank you.

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

No branches or pull requests

4 participants