Skip to content

Commit

Permalink
fix: add core behind http-server feature (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored May 11, 2022
1 parent 734196f commit 2be4a66
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions jsonrpsee/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)*
}
Expand Down Expand Up @@ -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 {
Expand All @@ -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
)*
}
Expand Down

0 comments on commit 2be4a66

Please sign in to comment.