Skip to content

Can't serialize maps with non-String keys on wasm #62

@dgulotta

Description

@dgulotta

Attempting to serialize a HashMap with non-string keys results an error in wasm (but works on native). This appears to be an intentional limitation of serde_json. It would be nice if bevy_pkv used a storage method that did not have this limitation. Since the native version uses rmp-serde, maybe just use that + base64 for wasm?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions