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

Rust - Support [<Emit(type)>] on a type to assist with binding to built in types #2904

Merged
merged 2 commits into from
May 29, 2022

Conversation

alexswan10k
Copy link
Contributor

@alexswan10k alexswan10k commented May 27, 2022

Following on from @ncave's suggestion covered here , and @alfonsogarciacaro's dart spike, this expands the Emit attribute to be supported on types, which will then be output as type decorators when required (function parameters, let bindings, struct definitions, etc).

I have made the design choice to not include any of the wrapped types and let a creator of the binding have full control over this, which also ensures consistency with any create method etc.

@alexswan10k alexswan10k changed the title Working Rust - Support [<Emit(type)>] to assist with binding to built in types May 29, 2022
@alexswan10k alexswan10k marked this pull request as ready for review May 29, 2022 08:59
@alexswan10k alexswan10k changed the title Rust - Support [<Emit(type)>] to assist with binding to built in types Rust - Support [<Emit(type)>] on a type to assist with binding to built in types May 29, 2022
@ncave ncave merged commit 5cfdadb into fable-compiler:snake_island May 29, 2022
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.

2 participants