diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:38:24 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:38:24 +0200 |
commit | 0a2c0dbc6c1afd56e9db0d93eef1ae05fe81a30b (patch) | |
tree | 17abe24561e1259b20fca539e45409000a864510 /jsonrpc/Cargo.toml | |
parent | 741a83e1a59a9ed822ce6d1ab1a82d31a1cc854a (diff) |
jsonrpc: add tcp, tls and ws features for compilation
Diffstat (limited to 'jsonrpc/Cargo.toml')
-rw-r--r-- | jsonrpc/Cargo.toml | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml index f33fc06..5a7c2ba 100644 --- a/jsonrpc/Cargo.toml +++ b/jsonrpc/Cargo.toml @@ -11,30 +11,27 @@ readme = "README.md" [features] -default = ["smol"] -ws = ["karyon_net/ws", "async-tungstenite"] +default = ["smol", "tcp", "unix"] +tcp = ["karyon_net/tcp"] +tls = ["tcp", "karyon_net/tls"] +ws = ["tcp", "karyon_net/ws", "async-tungstenite"] unix = ["karyon_net/unix"] smol = [ "karyon_core/smol", "karyon_net/smol", "karyon_jsonrpc_macro/smol", - "futures-rustls", "async-tungstenite?/async-std-runtime", ] tokio = [ "karyon_core/tokio", "karyon_net/tokio", "karyon_jsonrpc_macro/tokio", - "tokio-rustls", "async-tungstenite?/tokio-runtime", ] [dependencies] karyon_core = { version = "0.1.3", path = "../core", default-features = false } -karyon_net = { version = "0.1.3", path = "../net", default-features = false, features = [ - "tcp", - "tls", -] } +karyon_net = { version = "0.1.3", path = "../net", default-features = false } karyon_jsonrpc_macro = { version = "0.1.3", path = "jsonrpc_macro", default-features = false } @@ -48,12 +45,6 @@ async-channel = "2.3.1" async-tungstenite = { version = "0.25.0", default-features = false, optional = true } -futures-rustls = { version = "0.25.1", optional = true } -tokio-rustls = { version = "0.26.0", optional = true } - [dev-dependencies] env_logger = "0.11.3" -rcgen = "0.13.1" -rustls-pemfile = "2.1.2" smol = "2.0.0" -webpki-roots = "0.26.1" |