Mark Hammond
Mark Hammond
> Can they be equivalent given with the correct options? Not sure what "they" you are referring to? All the documented swift options obviously work with the swift cli. >...
TBH I don't see a reason to deprecate/remove UDL. However, I think "library mode" is a different and possibly unrelated issue. I think that in practice, library mode is the...
This is a little unfortunate, but IIUC is just a side-effect of external types. All generated callers to these should do the right thing. What problems are you seeing because...
> That being said, custom new types that are more "complex" such as String work without issues Ah, yeah - I can reproduce this, thanks.
https://github.com/mozilla/uniffi-rs/commit/a30a67f52f2d733fd23db71632be000a3a01bb54 is a repro, but I suspect this will be very difficult to fix?
lol, sorry, it wasn't a question for you - it was more a statement of my understanding of the situation, with a glimmer of questioning that @bendk might see something...
> I think it means updating the [ExternalKind](https://github.com/mozilla/uniffi-rs/blob/15a347327a1b45e55df8541d42578bde56ff4ee0/uniffi_meta/src/types.rs#L55-L60) enum to also include primitive types What I don't understand here is how the "importing" code can know what the primitive type...
keeping this alive in https://github.com/mhammond/uniffi-rs/tree/custom-type-as-external-confusion
> This is further complicated by the fact that `uniffiRustCallWithError` accepts a callback which uses `UniffiRustCallStatus`. `UniffiRustCallStatus` defines an `error_buf` as an instance of `RustBuffer`. As `RustBuffer` also have different...
Does https://mozilla.github.io/uniffi-rs/latest/proc_macro/index.html#variant-discriminants help here? The discriminants are exposed to bindings in that scenario.