ruwuma/crates/ruma-common
Damir Jelić ccd3b81557
Use web-time to return a SystemTime that works under WASM
The `MilliSecondsSinceUnixEpoch::to_system_time()` method returns the
`SystemTime` type from the standard library.

The `std::time::SystemTime::elapsed()` method sadly panics under WASM.
Instead of returning the `SystemTime` from the standard library we're
now returning a drop-in replacement of this type coming from the web-time
crate.
2024-03-20 12:19:18 +01:00
..
2023-11-20 20:30:46 +01:00
2023-11-08 18:03:26 +01:00

ruma-common

crates.io page docs.rs page license: MIT

Common types for other Ruma crates.

The feature-gated modules are defined as follow:

api module

Behind the api feature, core types used to define the requests and responses for each endpoint in the various Matrix API specifications. These types can be shared by client and server code for all Matrix APIs.

events module

Behind the events feature, serializable types for the events in the Matrix specification that can be shared by client and server code.