Merge remote-tracking branch 'upstream/main' into conduwuit-changes
This commit is contained in:
commit
8afdd5b602
@ -14,6 +14,9 @@ Breaking changes:
|
||||
|
||||
Improvements:
|
||||
|
||||
- Use the [web-time](https://github.com/daxpedda/web-time) crate to return a
|
||||
`SystemTime` that works under WASM in the
|
||||
`MilliSecondsSinceUnixEpoch::to_system_time()` method.
|
||||
- Stabilize support for `.m.rule.suppress_edits` push rule (MSC3958 / Matrix 1.9)
|
||||
- Add `MatrixVersion::V1_9`
|
||||
- Point links to the Matrix 1.9 specification
|
||||
|
@ -77,6 +77,7 @@ time = "0.3.34"
|
||||
tracing = { workspace = true, features = ["attributes"] }
|
||||
url = "2.2.2"
|
||||
uuid = { version = "1.0.0", optional = true, features = ["v4"] }
|
||||
web-time = "1.1.0"
|
||||
wildmatch = "2.0.0"
|
||||
|
||||
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
|
||||
|
@ -1,11 +1,9 @@
|
||||
use std::{
|
||||
fmt,
|
||||
time::{Duration, SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
use std::fmt;
|
||||
|
||||
use js_int::{uint, UInt};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use time::OffsetDateTime;
|
||||
use web_time::{Duration, SystemTime, UNIX_EPOCH};
|
||||
|
||||
/// A timestamp represented as the number of milliseconds since the unix epoch.
|
||||
#[derive(Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user