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

Support for projects not using cargo #2151

Closed
emarteca opened this issue Jun 13, 2024 · 1 comment
Closed

Support for projects not using cargo #2151

emarteca opened this issue Jun 13, 2024 · 1 comment

Comments

@emarteca
Copy link

Currently, the library_mode generate_bindings calls cargo to retrieve metadata about the project for which bindings are being generated: e.g. generate_bindings starts with this line:

let cargo_metadata = MetadataCommand::new()
        .exec()
        .context("error running cargo metadata")?;

This means uniffi-rs does not work for projects that use a different build system, where cargo is not available and/or where the project is missing a Cargo.toml file.

It would be nice if uniffi-rs was generalized to not be reliant on cargo.

@mhammond
Copy link
Member

Hopefully fixed by #2175

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

2 participants