Remove dependency on the url crate
This commit is contained in:
parent
1ca24515ad
commit
ae8a629823
@ -23,4 +23,3 @@ ruma-serde = "0.1.3"
|
||||
serde = { version = "1.0.106", features = ["derive"] }
|
||||
serde_json = "1.0.52"
|
||||
strum = { version = "0.18.0", features = ["derive"] }
|
||||
url = { version = "2.1.1", features = ["serde"] }
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
use ruma_api::ruma_api;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use url::Url;
|
||||
|
||||
ruma_api! {
|
||||
metadata {
|
||||
@ -33,12 +32,12 @@ ruma_api! {
|
||||
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, PartialOrd, Serialize)]
|
||||
pub struct HomeserverInfo {
|
||||
/// The base URL for the homeserver for client-server connections.
|
||||
pub base_url: Url,
|
||||
pub base_url: String,
|
||||
}
|
||||
|
||||
/// Information about a discovered identity server.
|
||||
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, PartialOrd, Serialize)]
|
||||
pub struct IdentityServerInfo {
|
||||
/// The base URL for the identity server for client-server connections.
|
||||
pub base_url: Url,
|
||||
pub base_url: String,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user