Skip to content

Use web_time::time instead of std::time to prevent panic on wasm. #84

@94bryanr

Description

@94bryanr

Using this crate on a wasm target causes an immediate panic when Instant from std::time is created. It would be great if std::time could be replaced with web_time which calls browser native time functions when built for wasm, and simply re-exports std::time when not built 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