From c705af104848b5ca8bd6394ed16b02dd9a6193f8 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 7 Jun 2021 16:26:13 +0200 Subject: [PATCH] test: Depend on ruma directly --- matrix_sdk_test/Cargo.toml | 5 +++-- matrix_sdk_test/src/lib.rs | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/matrix_sdk_test/Cargo.toml b/matrix_sdk_test/Cargo.toml index 0ab8435c..41ffbeda 100644 --- a/matrix_sdk_test/Cargo.toml +++ b/matrix_sdk_test/Cargo.toml @@ -11,9 +11,10 @@ repository = "https://github.com/matrix-org/matrix-rust-sdk" version = "0.2.0" [dependencies] -serde_json = "1.0.61" http = "0.2.3" +lazy_static = "1.4.0" matrix-sdk-common = { version = "0.2.0", path = "../matrix_sdk_common" } matrix-sdk-test-macros = { version = "0.1.0", path = "../matrix_sdk_test_macros" } -lazy_static = "1.4.0" +ruma = { version = "0.1.2", features = ["client-api-c"] } serde = "1.0.122" +serde_json = "1.0.61" diff --git a/matrix_sdk_test/src/lib.rs b/matrix_sdk_test/src/lib.rs index d5f8fb29..f0bf97e9 100644 --- a/matrix_sdk_test/src/lib.rs +++ b/matrix_sdk_test/src/lib.rs @@ -1,16 +1,15 @@ use std::{collections::HashMap, panic}; use http::Response; -use matrix_sdk_common::{ - api::r0::sync::sync_events::Response as SyncResponse, +pub use matrix_sdk_test_macros::async_test; +use ruma::{ + api::{client::r0::sync::sync_events::Response as SyncResponse, IncomingResponse}, events::{ presence::PresenceEvent, AnyGlobalAccountDataEvent, AnySyncEphemeralRoomEvent, AnySyncRoomEvent, AnySyncStateEvent, }, - identifiers::{room_id, RoomId}, - IncomingResponse, + room_id, RoomId, }; -pub use matrix_sdk_test_macros::async_test; use serde_json::Value as JsonValue; pub mod test_json;