Skip to content

Commit 2fcf88f

Browse files
committed
Merge remote-tracking branch 'HDauven/update-deps-axum'
2 parents 1963595 + 7232d84 commit 2fcf88f

File tree

7 files changed

+43
-43
lines changed

7 files changed

+43
-43
lines changed

examples/axum/Cargo.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ name = "yerpc-axum"
1111
path = "src/webserver.rs"
1212

1313
[dependencies]
14-
anyhow = "1.0.57"
15-
serde = "1.0.136"
16-
serde_json = "1.0.79"
17-
axum = { version = "0.7.1", features = ["ws"] }
18-
futures = "0.3.21"
19-
log = "0.4.16"
20-
async-trait = "0.1.53"
21-
typescript-type-def = { version = "0.5.3", features = ["json_value"] }
22-
async-broadcast = "0.4.0"
23-
tokio = { version = "1.19.2", features = ["full"] }
24-
tower-http = { version = "0.5.0", features = ["trace"] }
25-
tracing = "0.1.35"
26-
tracing-subscriber = "0.3.11"
27-
schemars = "0.8.11"
14+
anyhow = "1.0.95"
15+
serde = "1.0.217"
16+
serde_json = "1.0.138"
17+
axum = { version = "0.8.1", features = ["ws"] }
18+
futures = "0.3.31"
19+
log = "0.4.25"
20+
async-trait = "0.1.86"
21+
typescript-type-def = { version = "0.5.13", features = ["json_value"] }
22+
async-broadcast = "0.4.1"
23+
tokio = { version = "1.43.0", features = ["full"] }
24+
tower-http = { version = "0.5.2", features = ["trace"] }
25+
tracing = "0.1.41"
26+
tracing-subscriber = "0.3.19"
27+
schemars = "0.8.21"
2828
yerpc = { path = "../../yerpc", features = ["anyhow", "support-axum"]}

examples/tide/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ path = "src/webserver.rs"
1313
[dependencies]
1414
tide = "0.16.0"
1515
tide-websockets = "0.4.0"
16-
anyhow = "1.0.57"
17-
serde = "1.0.136"
18-
serde_json = "1.0.79"
16+
anyhow = "1.0.95"
17+
serde = "1.0.217"
18+
serde_json = "1.0.138"
1919
async-std = { version = "1.11.0", features = ["attributes"] }
20-
futures = "0.3.21"
20+
futures = "0.3.31"
2121
env_logger = "0.9.0"
22-
log = "0.4.16"
22+
log = "0.4.25"
2323
async-trait = "0.1.53"
24-
typescript-type-def = { version = "0.5.3", features = ["json_value"] }
24+
typescript-type-def = { version = "0.5.13", features = ["json_value"] }
2525
async-broadcast = "0.4.0"
2626
yerpc = { path = "../../yerpc", features = ["anyhow"]}

yerpc/Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ name = "generate-base-types"
1717

1818
[dependencies]
1919
yerpc_derive = { path = "../yerpc-derive", version = "0.6" }
20-
async-trait = "0.1.53"
21-
serde = { version = "1.0.136", features = ["derive"] }
22-
serde_json = "1.0.79"
23-
log = "0.4.16"
24-
futures = "0.3.21"
25-
futures-util = "0.3.21"
26-
async-channel = "1.6.1"
20+
async-channel = "1.9.0"
2721
async-lock = "3.4.0"
22+
async-trait = "0.1.86"
23+
futures = "0.3.31"
24+
futures-util = "0.3.31"
25+
log = "0.4.25"
26+
serde_json = "1.0.138"
27+
serde = { version = "1.0.217", features = ["derive"] }
2828

2929
# type generating dependencies
30-
typescript-type-def = { version = "0.5.3", features = ["json_value"] }
31-
schemars = { version = "0.8.11", optional = true }
30+
typescript-type-def = { version = "0.5.13", features = ["json_value"] }
31+
schemars = { version = "0.8.21", optional = true }
3232

3333
# optional dependencies
34-
anyhow = { version = "1.0.57", optional = true }
35-
axum = { version = "0.7.1", features = ["ws"], optional = true }
36-
tokio-tungstenite = { version = "0.20", optional = true }
37-
tokio = { version = "1.19.2", features = ["rt", "macros"], optional = true }
38-
tracing = { version = "0.1.35", optional = true }
34+
anyhow = { version = "1.0.95", optional = true }
35+
axum = { version = "0.8.1", features = ["ws"], optional = true }
36+
tokio-tungstenite = { version = "0.26.1", optional = true }
37+
tokio = { version = "1.43.0", features = ["rt", "macros"], optional = true }
38+
tracing = { version = "0.1.41", optional = true }
3939

4040
[features]
4141
anyhow_expose = ["anyhow"]
@@ -44,8 +44,8 @@ support-tungstenite = ["tokio", "tokio-tungstenite", "anyhow"]
4444
openrpc = ["schemars", "yerpc_derive/openrpc"]
4545

4646
[dev-dependencies]
47-
anyhow = "1.0.57"
48-
axum = { version = "0.7.1", features = ["ws"] }
49-
tokio-tungstenite = { version = "0.20" }
50-
tokio = { version = "1.19.2", features = ["rt", "macros"] }
51-
url = "2.2.2"
47+
anyhow = "1.0.95"
48+
axum = { version = "0.8.1", features = ["ws"] }
49+
tokio-tungstenite = { version = "0.26.1" }
50+
tokio = { version = "1.43.0", features = ["rt", "macros"] }
51+
url = "2.5.4"

yerpc/src/integrations/axum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub async fn handle_rpc<T: RpcServer>(
2929
while let Some(message) = out_rx.next().await {
3030
let message = serde_json::to_string(&message)?;
3131
tracing::trace!("RPC send {}", message);
32-
sender.send(Message::Text(message)).await?;
32+
sender.send(Message::Text(message.into())).await?;
3333
}
3434
Ok(())
3535
});

yerpc/src/integrations/tungstenite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ where
3737
tokio::select! {
3838
message = out_rx.next() => {
3939
let message = serde_json::to_string(&message)?;
40-
stream.send(Message::Text(message)).await?;
40+
stream.send(Message::Text(message.into())).await?;
4141
}
4242
message = stream.next() => {
4343
match message {

yerpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl From<anyhow::Error> for Error {
269269
fn from(error: anyhow::Error) -> Self {
270270
Self {
271271
code: -1,
272-
message: format!("{:?}", error),
272+
message: format!("anyhow: {:#}", error),
273273
data: None,
274274
}
275275
}

yerpc/tests/axum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mod tests {
4848
let tcp = TcpStream::connect("127.0.0.1:12345")
4949
.await
5050
.expect("Failed to connect");
51-
let url = url::Url::parse("ws://localhost:12345/rpc").unwrap();
51+
let url = "ws://localhost:12345/rpc";
5252
let (mut stream, response) = client_async(url, tcp)
5353
.await
5454
.expect("Client failed to connect");

0 commit comments

Comments
 (0)