Remove the option to disable macro reexport
This commit is contained in:
parent
f1789032fd
commit
0efac871bc
14
Cargo.toml
14
Cargo.toml
@ -17,10 +17,10 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
http = "0.2.1"
|
||||
percent-encoding = { version = "2.1.0", optional = true }
|
||||
ruma-api-macros = { version = "=0.16.0-rc.3", path = "ruma-api-macros", optional = true }
|
||||
percent-encoding = "2.1.0"
|
||||
ruma-api-macros = { version = "=0.16.0-rc.3", path = "ruma-api-macros" }
|
||||
ruma-identifiers = "0.16.0"
|
||||
serde = { version = "1.0.106", features = ["derive"], optional = true }
|
||||
serde = { version = "1.0.106", features = ["derive"] }
|
||||
serde_json = "1.0.51"
|
||||
serde_urlencoded = "0.6.1"
|
||||
strum = "0.18.0"
|
||||
@ -28,14 +28,6 @@ strum = "0.18.0"
|
||||
[dev-dependencies]
|
||||
ruma-events = "0.21.0-beta.1"
|
||||
|
||||
[features]
|
||||
default = ["with-ruma-api-macros"]
|
||||
with-ruma-api-macros = [
|
||||
"percent-encoding",
|
||||
"ruma-api-macros",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"ruma-api-macros",
|
||||
|
@ -191,13 +191,11 @@ use http::Method;
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg(feature = "with-ruma-api-macros")]
|
||||
pub use ruma_api_macros::ruma_api;
|
||||
|
||||
pub mod error;
|
||||
/// This module is used to support the generated code from ruma-api-macros.
|
||||
/// It is not considered part of ruma-api's public API.
|
||||
#[cfg(feature = "with-ruma-api-macros")]
|
||||
#[doc(hidden)]
|
||||
pub mod exports {
|
||||
pub use http;
|
||||
|
@ -1,6 +1,6 @@
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use ruma_api_macros::ruma_api;
|
||||
use ruma_api::ruma_api;
|
||||
|
||||
ruma_api! {
|
||||
metadata {
|
||||
|
Loading…
x
Reference in New Issue
Block a user