Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

use latest rust for non-windows, and upgrade tokio to 3.18 which fix a mpsc channel bug

rustdesk77204127f262
diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml
index 897cfbbba..1c222b8ba 100644
--- a/.github/workflows/flutter-build.yml
+++ b/.github/workflows/flutter-build.yml
@@ -11,7 +11,8 @@ on:
default: "nightly"
env:
- RUST_VERSION: "1.75" # https://github.com/rustdesk/rustdesk/discussions/7503
+ WIN_RUST_VERSION: "1.75" # https://github.com/rustdesk/rustdesk/discussions/7503
+ RUST_VERSION: "1.78"
CARGO_NDK_VERSION: "3.1.2"
LLVM_VERSION: "15.0.6"
FLUTTER_VERSION: "3.19.6"
@@ -84,7 +85,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
- toolchain: ${{ env.RUST_VERSION }}
+ toolchain: ${{ env.WIN_RUST_VERSION }}
targets: ${{ matrix.job.target }}
components: "rustfmt"
diff --git a/Cargo.lock b/Cargo.lock
index 48d488151..a3e77f8ec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6359,9 +6359,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
-version = "1.37.0"
+version = "1.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787"
+checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a"
dependencies = [
"backtrace",
"bytes",
@@ -6378,9 +6378,9 @@ dependencies = [
[[package]]
name = "tokio-macros"
-version = "2.2.0"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
+checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a"
dependencies = [
"proc-macro2 1.0.79",
"quote 1.0.35",
diff --git a/libs/hbb_common/Cargo.toml b/libs/hbb_common/Cargo.toml
index e0a97e61b..8ae3ebcd5 100644
--- a/libs/hbb_common/Cargo.toml
+++ b/libs/hbb_common/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2018"
[dependencies]
flexi_logger = { version = "0.27", features = ["async"] }
protobuf = { version = "3.4", features = ["with-bytes"] }
-tokio = { version = "1.37", features = ["full"] }
+tokio = { version = "1.38", features = ["full"] }
tokio-util = { version = "0.7", features = ["full"] }
futures = "0.3"
bytes = { version = "1.6", features = ["serde"] }