Compilation error with wasm_bindgen #653
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid#653
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello dear developers.
What happened?

I'm trying to use Uuid structure for wasm-bindgen, but I get compiler errors.
Steps to reproduce the behavior:
What were you expecting?
No compiler error from building it with:
wasm-pack build --target nodejsWhat's the context?
Hi @barvirm 👋
I’m not sure there’s a native wasm type that a UUID would naturally map to. You should be able to marshal them as byte slices and convert between UUIDs.
If it is expected that libraries implement this trait on types they define though then we can look at what an appropriate implementation would look like.
Just coming in through some triage. There hasn't been any activity here for a while. Since there's no native type to directly map a UUID to, I don't think there's anything for us to do here. Callers should pick an appropriate string/binary representation for their use-case.