uniffi-rs/uniffi_macros
Ian Campbell 53d5ac7274
Allow use of `uniffi::custom_newtype!` from non-root modules (#1691)
After moving `NewtypeHandle` in the fixture to a submodule I got:

```
error[E0433]: failed to resolve: use of undeclared type `UniffiCustomTypeConverter`
   --> fixtures/ext-types/proc-macro-lib/src/lib.rs:168:5
    |
168 |     uniffi::custom_newtype!(NewtypeHandle, i64);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `UniffiCustomTypeConverter`
    |
    = note: this error originates in the macro `uniffi::custom_newtype` (in Nightly builds, run with -Z macro-backtrace for more info)
```

Giving the full path to the type defined in the scaffolding resolves this.
2023-08-10 10:36:11 -04:00
..
src Allow use of `uniffi::custom_newtype!` from non-root modules (#1691) 2023-08-10 10:36:11 -04:00
Cargo.toml chore: Release 2023-06-23 12:16:38 +02:00