diff --git a/ruma-api-macros/Cargo.toml b/ruma-api-macros/Cargo.toml index 477214f2..0cc553f0 100644 --- a/ruma-api-macros/Cargo.toml +++ b/ruma-api-macros/Cargo.toml @@ -16,7 +16,6 @@ version = "0.16.1" edition = "2018" [dependencies] -matches = "0.1.8" proc-macro2 = "1.0.18" quote = "1.0.7" syn = { version = "1.0.31", features = ["full", "extra-traits"] } diff --git a/ruma-api-macros/src/api/response.rs b/ruma-api-macros/src/api/response.rs index 7c9f64b7..0d8d8283 100644 --- a/ruma-api-macros/src/api/response.rs +++ b/ruma-api-macros/src/api/response.rs @@ -2,7 +2,6 @@ use std::{convert::TryFrom, mem}; -use matches::matches; use proc_macro2::TokenStream; use quote::{quote, quote_spanned, ToTokens}; use syn::{spanned::Spanned, Field, Ident}; diff --git a/ruma-common/Cargo.toml b/ruma-common/Cargo.toml index 75fe68bb..2dbb97c4 100644 --- a/ruma-common/Cargo.toml +++ b/ruma-common/Cargo.toml @@ -12,8 +12,10 @@ edition = "2018" [dependencies] js_int = { version = "0.1.7", features = ["serde"] } -matches = "0.1.8" ruma-serde = { version = "0.2.2", path = "../ruma-serde" } serde = { version = "1.0.113", features = ["derive"] } serde_json = { version = "1.0.55", features = ["raw_value"] } strum = { version = "0.18.0", features = ["derive"] } + +[dev-dependencies] +matches = "0.1.8" diff --git a/ruma-events-macros/Cargo.toml b/ruma-events-macros/Cargo.toml index 522fb3b3..fc98dbb7 100644 --- a/ruma-events-macros/Cargo.toml +++ b/ruma-events-macros/Cargo.toml @@ -16,7 +16,6 @@ version = "0.21.3" syn = { version = "1.0.31", features = ["full"] } quote = "1.0.7" proc-macro2 = "1.0.18" -matches = "0.1.8" [lib] proc-macro = true diff --git a/ruma-events-macros/src/event_enum.rs b/ruma-events-macros/src/event_enum.rs index ed2946d1..0804eff9 100644 --- a/ruma-events-macros/src/event_enum.rs +++ b/ruma-events-macros/src/event_enum.rs @@ -1,6 +1,5 @@ //! Implementation of event enum and event content enum macros. -use matches::matches; use proc_macro2::{Span, TokenStream}; use quote::{format_ident, quote}; use syn::{ diff --git a/ruma-federation-api/Cargo.toml b/ruma-federation-api/Cargo.toml index 1f316f8c..a08a0c0e 100644 --- a/ruma-federation-api/Cargo.toml +++ b/ruma-federation-api/Cargo.toml @@ -17,7 +17,6 @@ version = "0.0.2" [dependencies] js_int = "0.1.7" -matches = "0.1.8" ruma-api = { version = "0.16.1", path = "../ruma-api" } ruma-common = { version = "0.1.3", path = "../ruma-common" } ruma-events = { version = "0.21.3", path = "../ruma-events" } @@ -25,3 +24,6 @@ ruma-identifiers = { version = "=0.17.0-pre.1", path = "../ruma-identifiers" } ruma-serde = { version = "0.2.2", path = "../ruma-serde" } serde = { version = "1.0.113", features = ["derive"] } serde_json = "1.0.55" + +[dev-dependencies] +matches = "0.1.8" diff --git a/ruma-identifiers/Cargo.toml b/ruma-identifiers/Cargo.toml index e2d89d4b..af022e55 100644 --- a/ruma-identifiers/Cargo.toml +++ b/ruma-identifiers/Cargo.toml @@ -21,10 +21,10 @@ default = ["serde"] [dependencies] either = { version = "1.5.3", optional = true } -matches = "0.1.8" rand = { version = "0.7.3", optional = true } serde = { version = "1.0.113", optional = true, features = ["derive"] } strum = { version = "0.18.0", features = ["derive"] } [dev-dependencies] +matches = "0.1.8" serde_json = "1.0.55" diff --git a/ruma-identifiers/src/room_version_id.rs b/ruma-identifiers/src/room_version_id.rs index 01ed5f5f..4d878cc5 100644 --- a/ruma-identifiers/src/room_version_id.rs +++ b/ruma-identifiers/src/room_version_id.rs @@ -6,7 +6,6 @@ use std::{ fmt::{self, Display, Formatter}, }; -use matches::matches; #[cfg(feature = "serde")] use serde::{Deserialize, Deserializer, Serialize, Serializer}; diff --git a/ruma-identifiers/src/user_id.rs b/ruma-identifiers/src/user_id.rs index 8d41a349..9e8847e1 100644 --- a/ruma-identifiers/src/user_id.rs +++ b/ruma-identifiers/src/user_id.rs @@ -2,8 +2,6 @@ use std::{convert::TryFrom, num::NonZeroU8}; -use matches::matches; - use crate::{error::Error, parse_id, ServerName}; /// A Matrix user ID.