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

Providing --config or -c doesn't work? #58

Open
mklnz opened this issue Sep 12, 2024 · 1 comment
Open

Providing --config or -c doesn't work? #58

mklnz opened this issue Sep 12, 2024 · 1 comment

Comments

@mklnz
Copy link

mklnz commented Sep 12, 2024

Version: uniffi-bindgen 0.2.1+v0.25.0

I've setup a uniffi_go.toml config file with just:

package = "libfoo"

and ran

uniffi-bindgen-go -c uniffi_go.toml --library ../../target/release/foo.dylib --out-dir ./go_bindings'

However the output package name is still foo, and additionally if I enter a nonexistent file such as -c do_not_exist.toml there are no errors and just continues to generate bindings normally.

@Lipt0nas
Copy link
Member

Hey, according to the documentation on config options, your uniffi_go.toml file should contain

[bindings.go]
package_name = "libfoo"

Let me know if this fixes the issue

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