Skip to content

Commit 396653f

Browse files
authored
feat: support tokio v0.3.x (#23)
1 parent 0cd69ba commit 396653f

File tree

14 files changed

+58
-57
lines changed

14 files changed

+58
-57
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# rsocket-rust
22

3+
![GitHub Workflow Status](https://github.com/rsocket/rsocket-rust/workflows/Rust/badge.svg)
34
[![Build Status](https://travis-ci.com/rsocket/rsocket-rust.svg?branch=master)](https://travis-ci.com/rsocket/rsocket-rust)
45
[![Crates.io](https://img.shields.io/crates/v/rsocket_rust)](https://crates.io/crates/rsocket_rust)
56
[![Crates.io](https://img.shields.io/crates/d/rsocket_rust)](https://crates.io/crates/rsocket_rust)

examples/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ publish = false
77

88
[dev-dependencies]
99
log = "0.4.11"
10-
env_logger = "0.7.1"
11-
futures = "0.3.5"
10+
env_logger = "0.8.1"
11+
futures = "0.3.7"
1212
clap = "2.33.3"
13-
tokio-postgres = "0.5.5"
13+
tokio-postgres = "0.6.0"
1414
redis = "0.17.0"
1515

1616
[dev-dependencies.rsocket_rust]
@@ -23,7 +23,7 @@ path = "../rsocket-transport-tcp"
2323
path = "../rsocket-transport-websocket"
2424

2525
[dev-dependencies.tokio]
26-
version = "0.2.22"
26+
version = "0.3.3"
2727
default-features = false
2828
features = ["full"]
2929

examples/qps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ where
4848
}
4949
let current = counter.fetch_add(1, Ordering::SeqCst) + 1;
5050
if current >= count {
51-
notify.notify();
51+
notify.notify_one();
5252
}
5353
});
5454
}

rsocket-messaging/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ homepage = "https://github.com/rsocket/rsocket-rust"
1010
description = "Communicate with Spring RSocket Messaging."
1111

1212
[dependencies]
13-
futures = "0.3.5"
14-
bytes = "0.5.6"
15-
serde = "1.0.116"
16-
serde_json = "1.0.57"
13+
futures = "0.3.7"
14+
bytes = "0.6.0"
15+
serde = "1.0.117"
16+
serde_json = "1.0.59"
1717
serde_cbor = "0.11.1"
1818
hex = "0.4.2"
19-
url = "2.1.1"
19+
url = "2.2.0"
2020

2121
[dependencies.rsocket_rust]
2222
path = "../rsocket"

rsocket-test/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ publish = false
77

88
[dev-dependencies]
99
log = "0.4"
10-
futures = "0.3.5"
11-
env_logger = "0.7.1"
12-
bytes = "0.5.6"
10+
futures = "0.3.7"
11+
env_logger = "0.8.1"
12+
bytes = "0.6.0"
1313
hex = "0.4.2"
1414
rand = "0.7.3"
15-
serde = "1.0.116"
16-
serde_derive = "1.0.116"
15+
serde = "1.0.117"
16+
serde_derive = "1.0.117"
1717

1818
[dev-dependencies.rsocket_rust]
1919
path = "../rsocket"
@@ -29,6 +29,6 @@ path = "../rsocket-transport-websocket"
2929
path = "../rsocket-messaging"
3030

3131
[dev-dependencies.tokio]
32-
version = "0.2.22"
32+
version = "0.3.3"
3333
default-features = false
3434
features = ["full"]

rsocket-test/tests/test_clients.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn test_websocket() {
5454

5555
sleep(Duration::from_millis(500));
5656

57-
let mut client_runtime = Runtime::new().unwrap();
57+
let client_runtime = Runtime::new().unwrap();
5858

5959
client_runtime.block_on(async {
6060
let cli = RSocketFactory::connect()
@@ -102,7 +102,7 @@ fn test_tcp() {
102102

103103
sleep(Duration::from_millis(500));
104104

105-
let mut client_runtime = Runtime::new().unwrap();
105+
let client_runtime = Runtime::new().unwrap();
106106

107107
client_runtime.block_on(async {
108108
let cli = RSocketFactory::connect()
@@ -158,7 +158,7 @@ fn test_unix() {
158158

159159
sleep(Duration::from_millis(500));
160160

161-
let mut client_runtime = Runtime::new().unwrap();
161+
let client_runtime = Runtime::new().unwrap();
162162

163163
client_runtime.block_on(async {
164164
let cli = RSocketFactory::connect()

rsocket-transport-tcp/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ description = "TCP RSocket transport implementation."
1111

1212
[dependencies]
1313
log = "0.4.11"
14-
futures = "0.3.5"
15-
bytes = "0.5.6"
16-
async-trait = "0.1.40"
14+
futures = "0.3.7"
15+
bytes = "0.6.0"
16+
async-trait = "0.1.41"
1717

1818
[dependencies.rsocket_rust]
1919
path = "../rsocket"
2020
features = ["frame"]
2121

2222
[dependencies.tokio]
23-
version = "0.2.22"
23+
version = "0.3.3"
2424
default-features = false
25-
features = [ "rt-core", "rt-threaded", "tcp", "uds", "sync", "dns", "stream", "io-util", "macros" ]
25+
features = [ "rt", "rt-multi-thread", "net", "sync", "stream", "io-util", "macros" ]
2626

2727
[dependencies.tokio-util]
28-
version = "0.3.1"
28+
version = "0.5.0"
2929
default-features = false
3030
features = ["codec"]

rsocket-transport-wasm/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ homepage = "https://github.com/rsocket/rsocket-rust"
1010
description = "WASM Websocket RSocket transport implementation."
1111

1212
[dependencies]
13-
bytes = "0.5.6"
13+
bytes = "0.6.0"
1414
wasm-bindgen-futures = "0.4.18"
15-
futures-channel = "0.3.5"
16-
futures-util = "0.3.5"
15+
futures-channel = "0.3.7"
16+
futures-util = "0.3.7"
1717
js-sys = "0.3.45"
18-
serde = "1.0.116"
19-
serde_derive = "1.0.116"
20-
async-trait = "0.1.40"
18+
serde = "1.0.117"
19+
serde_derive = "1.0.117"
20+
async-trait = "0.1.41"
2121

2222
[dependencies.rsocket_rust]
2323
path = "../rsocket"

rsocket-transport-websocket/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ description = "Websocket RSocket transport implementation."
1111

1212
[dependencies]
1313
log = "0.4.11"
14-
futures = "0.3.5"
15-
bytes = "0.5.6"
16-
url = "2.1.1"
17-
tokio-tungstenite = "0.11.0"
18-
async-trait = "0.1.40"
14+
futures = "0.3.7"
15+
bytes = "0.6.0"
16+
url = "2.2.0"
17+
tokio-tungstenite = "0.12.0"
18+
async-trait = "0.1.41"
1919

2020
[dependencies.rsocket_rust]
2121
path = "../rsocket"
2222
features = ["frame"]
2323

2424
[dependencies.tokio]
25-
version = "0.2.22"
25+
version = "0.3.3"
2626
default-features = false
27-
features = [ "rt-core", "rt-threaded", "tcp", "sync", "stream" ]
27+
features = [ "rt", "rt-multi-thread", "net", "sync", "stream" ]

rsocket/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ description = "rsocket-rust is an implementation of the RSocket protocol in Rust
1111

1212
[dependencies]
1313
log = "0.4.11"
14-
bytes = "0.5.6"
15-
futures = "0.3.5"
14+
bytes = "0.6.0"
15+
futures = "0.3.7"
1616
lazy_static = "1.4.0"
17-
async-trait = "0.1.40"
17+
async-trait = "0.1.41"
1818
dashmap = "3.11.10"
19-
thiserror = "1.0.20"
20-
anyhow = "1.0.32"
19+
thiserror = "1.0.22"
20+
anyhow = "1.0.34"
2121

2222
[target.'cfg(target_arch = "wasm32")'.dependencies]
2323
wasm-bindgen-futures = "0.4.18"
2424

2525
[dependencies.tokio]
26-
version = "0.2.22"
26+
version = "0.3.3"
2727
default-features = false
28-
features = [ "rt-core", "rt-threaded", "sync", "stream" ]
28+
features = [ "rt", "rt-multi-thread", "sync", "stream" ]
2929

3030
[features]
3131
default = []

0 commit comments

Comments
 (0)