From c5f8137ba9741b2317313256b57e6e14b61fb419 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Wed, 27 Mar 2024 13:48:55 -0400 Subject: [PATCH] ruma: Export web_time as time --- Cargo.toml | 1 + crates/ruma-common/Cargo.toml | 2 +- crates/ruma/Cargo.toml | 1 + crates/ruma/src/lib.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index baa83c00..1e6db8ce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,6 +35,7 @@ serde_html_form = "0.2.0" serde_json = "1.0.87" thiserror = "1.0.37" tracing = { version = "0.1.37", default-features = false, features = ["std"] } +web-time = "1.1.0" [profile.dev] # Speeds up test times by more than 10% in a simple test diff --git a/crates/ruma-common/Cargo.toml b/crates/ruma-common/Cargo.toml index 2c90e64f..78a1e5cf 100644 --- a/crates/ruma-common/Cargo.toml +++ b/crates/ruma-common/Cargo.toml @@ -77,7 +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" +web-time = { workspace = true } wildmatch = "2.0.0" [target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] diff --git a/crates/ruma/Cargo.toml b/crates/ruma/Cargo.toml index cae789f6..c7d0bfb5 100644 --- a/crates/ruma/Cargo.toml +++ b/crates/ruma/Cargo.toml @@ -267,6 +267,7 @@ __ci = [ assign = { workspace = true } js_int = { workspace = true } js_option = "0.1.1" +web-time = { workspace = true } ruma-common = { workspace = true } diff --git a/crates/ruma/src/lib.rs b/crates/ruma/src/lib.rs index ed425677..685bd67d 100644 --- a/crates/ruma/src/lib.rs +++ b/crates/ruma/src/lib.rs @@ -130,3 +130,4 @@ pub use js_option::JsOption; #[cfg(feature = "client-ext-client-api")] pub use ruma_client::Client; pub use ruma_common::*; +pub use web_time as time;