-
Notifications
You must be signed in to change notification settings - Fork 18
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
How can I generate bindings from proc_macros? #49
Comments
I'm guessing you want to generate bindings straight from the library, without touching UDL files. In that case, you should use:
The
|
Thank you for your quick response @arg0d.
Yes I'm actually generating the bindings for swift using proc macros like the docs say so https://mozilla.github.io/uniffi-rs/latest/proc_macro/index.html here using I want to achieve something similar for GoLang but I can't seem to be able to figure it out. I'm trying what you suggested
I guess I could create a UDL file but I'd fancy not to. |
Update: I was able to generate the bindings from a cdylib instead. I had to add it to my [lib] section of the Cargo.toml
then the command |
|
Apparently not |
I'm trying to generate go bindings for a project I'm working on, but I can't seem to be able to do so from proc_macros
According to help this would be possible
but when I try something like
uniffi-bindgen-go -l 'frost-uniffi-sdk/target/universal-ios/release/libfrost_uniffi_sdk.a' frost-uniffi-sdk
fails with
Error: UDL file has no grand-parent folder!
how can I achieve it?
Context: this is the project I'm working on https://github.com/pacu/frost-uniffi-sdk
The text was updated successfully, but these errors were encountered: