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

Add support for Option<*const T>, Option<*mut T> and NonNull<T> #3852

Merged
merged 6 commits into from
Feb 26, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Feb 23, 2024

I specifically didn't implement taking NonNull<T> as a parameter to avoid having to add a runtime check somewhere.

EDIT: Not sure whats going wrong here, but will leave it at draft until I figure it out.

src/convert/impls.rs Outdated Show resolved Hide resolved
examples/guide-supported-types-examples/src/non_null.rs Outdated Show resolved Hide resolved
guide/src/reference/types/non-null.md Outdated Show resolved Hide resolved
tests/wasm/simple.rs Outdated Show resolved Hide resolved
daxpedda and others added 2 commits February 24, 2024 09:12
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
@daxpedda daxpedda marked this pull request as ready for review February 24, 2024 09:31
tests/wasm/simple.rs Outdated Show resolved Hide resolved
crates/cli-support/src/wit/outgoing.rs Show resolved Hide resolved
crates/cli-support/src/js/binding.rs Outdated Show resolved Hide resolved
crates/cli-support/src/wit/incoming.rs Outdated Show resolved Hide resolved
crates/cli-support/src/wit/standard.rs Outdated Show resolved Hide resolved
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
examples/guide-supported-types-examples/non_null.js Outdated Show resolved Hide resolved
guide/src/SUMMARY.md Outdated Show resolved Hide resolved
Co-Authored-By: Liam Murphy <43807659+Liamolucko@users.noreply.github.com>
Copy link
Collaborator

@Liamolucko Liamolucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@daxpedda daxpedda merged commit c80bf9a into rustwasm:main Feb 26, 2024
25 checks passed
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