Unverified Commit 2be4a66f authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

fix: add `core` behind `http-server` feature (#760)

parent 734196f1
Pipeline #193071 passed with stages
in 5 minutes and 5 seconds
......@@ -11,7 +11,7 @@ macro_rules! cfg_feature {
macro_rules! cfg_client {
($($item:item)*) => {
$(
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-ws-client", feature = "client", feature = "async-client"))]
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-wasm-client", feature = "jsonrpsee-ws-client", feature = "client", feature = "async-client"))]
$item
)*
}
......@@ -58,12 +58,8 @@ macro_rules! cfg_server {
macro_rules! cfg_http_server {
($($item:item)*) => {
$(
#[cfg(feature = "jsonrpsee-http-server")]
#[cfg_attr(docsrs, doc(cfg(feature = "jsonrpsee-http-server")))]
$item
)*
}
cfg_feature!("jsonrpsee-http-server", $($item)*);
};
}
macro_rules! cfg_ws_server {
......@@ -87,7 +83,7 @@ macro_rules! cfg_types {
macro_rules! cfg_client_or_server {
($($item:item)*) => {
$(
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-ws-client", feature = "client", feature = "async-client", feature = "jsonrpsee-ws-server", feature = "jsonrpsee-http-client"))]
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-ws-client", feature = "jsonrpsee-wasm-client", feature = "client", feature = "async-client", feature = "jsonrpsee-ws-server", feature = "jsonrpsee-http-server"))]
$item
)*
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment