Skip to content

Commit e724d08

Browse files
authored
Do not pull in url-1.0 unless websocket is enabled (#653)
* Do not pull in url-1.0 unless websocket is enabled This takes advantage of rust-websocket re-exporting the `url` crate, making this easy. * Bump websocket to 0.26
1 parent dca212b commit e724d08

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core-client/transports/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,13 @@ jsonrpc-pubsub = { version = "18.0.0", path = "../../pubsub" }
4242
log = "0.4"
4343
serde = { version = "1.0", features = ["derive"] }
4444
serde_json = "1.0"
45-
url = "1.7"
4645

4746
hyper = { version = "0.14", features = ["client", "http1", "tcp"], optional = true }
4847
hyper-tls = { version = "0.5", optional = true }
4948
jsonrpc-server-utils = { version = "18.0.0", path = "../../server-utils", optional = true }
5049
parity-tokio-ipc = { version = "0.9", optional = true }
5150
tokio = { version = "1", optional = true }
52-
websocket = { version = "0.24", optional = true }
51+
websocket = { version = "0.26", optional = true }
5352

5453
[dev-dependencies]
5554
assert_matches = "1.1"

core-client/transports/src/transports/ws.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::pin::Pin;
55
use std::task::{Context, Poll};
66

77
use crate::{RpcChannel, RpcError};
8-
use websocket::{ClientBuilder, OwnedMessage};
8+
use websocket::{url, ClientBuilder, OwnedMessage};
99

1010
/// Connect to a JSON-RPC websocket server.
1111
///

0 commit comments

Comments
 (0)