NordSecurity / uniffi-bindgen-cs

C# bindings generator for uniffi-rs
https://github.com/NordSecurity/uniffi-bindgen-cs
Mozilla Public License 2.0
109 stars 21 forks source link

1: ExtendedAttributeNoArgs not supported: "Wrapped"', bindgen\src/lib.rs:79:6 #16

Closed ruskpr closed 1 year ago

ruskpr commented 1 year ago

I'm getting the following error message when I try to run uniffi-bindgen-cs against

https://github.com/sicpa-dlab/didcomm-rust/blob/main/uniffi/src/didcomm.udl#L1

1: ExtendedAttributeNoArgs not supported: "Wrapped"', bindgen\src/lib.rs:79:6

Does anybody know how we can work around this?

arg0d commented 1 year ago

Hey, it looks like your .udl files contains an extended attribute [Wrappped], which is not supported in uniffi-rs version 0.23.0 (the version I checked with). How are you getting this to work when generating Rust scaffolding? Which uniffi-rs verison are you using? Is this an issue only with uniffi-bindgen-cs?

ruskpr commented 1 year ago

Found the solution in https://mozilla.github.io/uniffi-rs/udl/custom_types.html it had everything I needed to resolve the issue.

I changed [Wrapped] with [Custom], as it provides the similar functionality, just in a different name in the newer versions of uniffi-rs.

I'm currently using uniffi-rs v0.22.0