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

Stop supporting typedef extern, [ExternalInterface=...] in UDL etc. #2355

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhammond
Copy link
Member

This consolidates how external types are expressed in UDL. Instead of

[External="crate_name"]
typedef extern MyEnum

[ExternalInterface="crate_name"]
typedef extern MyInterface

you would use:

[External="crate_name"]
typedef enum MyEnum

[External="crate_name"]
typedef interface MyInterface

See the docs and upgrading notes in this commit for more.

It also takes the opportunity to use Type::External far less often in uniffi_udl, instead using the actual type of the object.

This consolidates how external types are expressed in UDL. Instead of

```
[External="crate_name"]
typedef extern MyEnum

[ExternalInterface="crate_name"]
typedef extern MyInterface

```
you would use:
```
[External="crate_name"]
typedef enum MyEnum

[External="crate_name"]
typedef interface MyInterface
```

See the docs and upgrading notes in this commit for more.

It also takes the opportunity to use Type::External far less often in uniffi_udl,
instead using the actual type of the object.
@mhammond mhammond requested a review from a team as a code owner December 16, 2024 15:24
@mhammond mhammond requested review from jeddai and removed request for a team December 16, 2024 15:24
@mhammond
Copy link
Member Author

gah, checksums have been broken for external types :(

@mhammond mhammond marked this pull request as draft December 16, 2024 16:28
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

Successfully merging this pull request may close these issues.

1 participant