mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-05-27 13:22:26 +02:00
feat: update to tauri v1.0.0-rc
This commit is contained in:
Generated
+987
-397
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,14 @@ edition = "2018"
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
tauri = { version = "1.0.0-beta.5", features = ["api-all"] }
|
||||
tauri = { version = "1.0.0-rc.1", features = ["api-all"] }
|
||||
tokio = { version = "1.11", features = ["net"] }
|
||||
futures-util = "0.3"
|
||||
tauri-plugin-websocket = { path = "../../../" }
|
||||
tokio-tungstenite = "0.15"
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = "1.0.0-beta.3"
|
||||
tauri-build = "1.0.0-rc.0"
|
||||
|
||||
[features]
|
||||
default = [ "custom-protocol" ]
|
||||
|
||||
@@ -25,10 +25,9 @@ async fn accept_connection(stream: TcpStream) {
|
||||
.expect("Error during the websocket handshake occurred");
|
||||
|
||||
let (write, read) = ws_stream.split();
|
||||
read
|
||||
.forward(write)
|
||||
.await
|
||||
.expect("Failed to forward message")
|
||||
if let Err(e) = read.forward(write).await {
|
||||
eprintln!("Error: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user