Update dependencies to latest versions
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m12s

- Update rand from 0.8.5 to 0.9.1
- Update tokio-tungstenite from 0.24.0 to 0.27.0
- Update all other dependencies to latest compatible versions
- Fix API breaking change: replace text.into_bytes() with text.as_bytes()
- All tests passing, no functionality changes
This commit is contained in:
Ivan Li 2025-06-30 17:55:41 +08:00
parent e2bd5e9be5
commit b419463bb4
3 changed files with 416 additions and 516 deletions

926
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -15,9 +15,9 @@ http-body-util = "0.1"
hyper = {version = "1.5.0", features = ["full"]} hyper = {version = "1.5.0", features = ["full"]}
hyper-util = {version = "0.1", features = ["full"]} hyper-util = {version = "0.1", features = ["full"]}
log = "0.4.22" log = "0.4.22"
rand = "0.8.5" rand = "0.9.1"
serde = {version = "1.0.215", features = ["derive"]} serde = {version = "1.0.215", features = ["derive"]}
serde_json = "1.0.133" serde_json = "1.0.133"
tokio = {version = "1.41.1", features = ["full"]} tokio = {version = "1.41.1", features = ["full"]}
tokio-tungstenite = "0.24.0" tokio-tungstenite = "0.27.0"
url = "2.5.3" url = "2.5.3"

View File

@ -143,7 +143,7 @@ async fn pipe(connect_addr: String) -> anyhow::Result<()> {
match message { match message {
Message::Text(text) => { Message::Text(text) => {
let data = text.into_bytes(); let data = text.as_bytes();
let wrapper = let wrapper =
serde_json::from_slice::<clash_conn_msg::ClashConnectionsWrapper>(&data); serde_json::from_slice::<clash_conn_msg::ClashConnectionsWrapper>(&data);