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
Decoupling this project from Cargo #922
Comments
Meson developer here, we likely can provide at least most of the data that |
@dcbaker turns out that this works: |
Yeah, cargo is only used to compute metadata, if you feed cbindgen the right files / metadata it should work without cargo. Please reopen if there's anything more concrete to do here. We really don't want to re-implement the cargo crate graph resolution ourselves if we can help it :) |
Hi @emilio I think what is missing is explaining that this project can be used without Cargo in the README file. Currently, there is only this:
So it is not far-fetched to say that people may think that using Cargo is a pre-requisite to use cbindgen, which is not true. |
Hi,
I was trying to use cbindgen in a meson project, and noticed that it is not possible currently.
Mainly, cbindgen expects to be able to call
cargo expand
, it also expects aCargo.lock
and to be able to callcargo metadata
.I wonder whether it is possible to decouple this project from Cargo, such that non-cargo projects can benefit from cbindgen like they do from
bindgen
itself.Thoughts?
The text was updated successfully, but these errors were encountered: