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

jsonrpsee wrapper crate: add feature async_wasm_client (#893)

parent 8af992e4
Pipeline #219653 passed with stages
in 53 minutes and 36 seconds
......@@ -27,12 +27,13 @@ client-ws-transport = ["jsonrpsee-client-transport/ws", "jsonrpsee-client-transp
client-ws-transport-no-tls = ["jsonrpsee-client-transport/ws"]
client-web-transport = ["jsonrpsee-client-transport/web"]
async-client = ["jsonrpsee-core/async-client"]
async-wasm-client = ["jsonrpsee-core/async-wasm-client"]
http-client = ["jsonrpsee-http-client", "jsonrpsee-types", "jsonrpsee-core/client"]
wasm-client = ["jsonrpsee-wasm-client", "jsonrpsee-types", "jsonrpsee-core/client"]
ws-client = ["jsonrpsee-ws-client", "jsonrpsee-types", "jsonrpsee-core/client"]
macros = ["jsonrpsee-proc-macros", "jsonrpsee-types", "tracing"]
client = ["http-client", "ws-client", "wasm-client", "client-ws-transport", "client-web-transport", "async-client", "client-core"]
client = ["http-client", "ws-client", "wasm-client", "client-ws-transport", "client-web-transport", "async-client", "async-wasm-client", "client-core"]
client-core = ["jsonrpsee-core/client"]
server = ["jsonrpsee-server", "server-core", "jsonrpsee-types"]
server-core = ["jsonrpsee-core/server"]
......
......@@ -11,7 +11,10 @@ macro_rules! cfg_feature {
macro_rules! cfg_client {
($($item:item)*) => {
$(
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-wasm-client", feature = "jsonrpsee-ws-client", feature = "client", feature = "async-client", feature = "client-core"))]
#[cfg(any(
feature = "jsonrpsee-http-client", feature = "jsonrpsee-wasm-client", feature = "jsonrpsee-ws-client",
feature = "client", feature = "async-client", feature = "client-core", feature = "async-wasm-client"
))]
$item
)*
}
......@@ -68,7 +71,11 @@ macro_rules! cfg_types {
macro_rules! cfg_client_or_server {
($($item:item)*) => {
$(
#[cfg(any(feature = "jsonrpsee-http-client", feature = "jsonrpsee-wasm-client", feature = "jsonrpsee-ws-client", feature = "client", feature = "async-client", feature = "client-core", feature = "server", feature = "server-core"))]
#[cfg(any(
feature = "jsonrpsee-http-client", feature = "jsonrpsee-wasm-client", feature = "jsonrpsee-ws-client",
feature = "client", feature = "async-client", feature = "async-wasm-client",
feature = "client-core", feature = "server", feature = "server-core"
))]
$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