I followed the tutorial for generating the bindgen binary, and it works for generating bindings! However, now when I call cargo build on my (single crate) project, I get an error because of the missing uniffi/cli feature logic.
❯ cargo build
Compiling example v0.1.0 (/Users/sal/Development/example)
error[E0425]: cannot find function `uniffi_bindgen` in crate `uniffi`
--> uniffi-bindgen.rs:2:13
|
2 | uniffi::uniffi_bindgen()
| ^^^^^^^^^^^^^^ not found in `uniffi`
For more information about this error, try `rustc --explain E0425`.
error: could not compile `example` due to previous error
Is there a way to set this up without breaking cargo build? Should I be doing this in a different crate, or is there a different macro I should use?
I'm admittedly newer to Rust and cargo, so the problem might be me. 😅
┆Issue is synchronized with this Jira Task
┆Issue Number: UNIFFI-241
I followed the tutorial for generating the bindgen binary, and it works for generating bindings! However, now when I call
cargo buildon my (single crate) project, I get an error because of the missinguniffi/clifeature logic.Is there a way to set this up without breaking
cargo build? Should I be doing this in a different crate, or is there a different macro I should use?I'm admittedly newer to Rust and
cargo, so the problem might be me. 😅┆Issue is synchronized with this Jira Task
┆Issue Number: UNIFFI-241