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

This commit is contained in:
rustdesk 2024-06-13 13:05:35 +08:00
parent 65c2ccdc93
commit 77204127f2
3 changed files with 8 additions and 7 deletions

View File

@ -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"

8
Cargo.lock generated
View File

@ -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",

View File

@ -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"] }