From 50de5dab9782a83b6b186b18474dc301293b7612 Mon Sep 17 00:00:00 2001 From: eauxxs Date: Sun, 3 Dec 2023 12:23:20 +0800 Subject: [PATCH] update boring version; fix build --- Cargo.lock | 56 +++++++++++++++++++++++++++++++++++++++--------------- Cargo.toml | 6 +++--- 2 files changed, 44 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a8bae18d..bff36ce7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -201,7 +201,7 @@ checksum = "f8175979259124331c1d7bf6586ee7e0da434155e4b2d48ec2c8386281d8df39" dependencies = [ "async-trait", "axum-core", - "bitflags", + "bitflags 1.3.2", "bytes", "futures-util", "http", @@ -259,11 +259,11 @@ checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" [[package]] name = "bindgen" -version = "0.60.1" +version = "0.68.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6" +checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078" dependencies = [ - "bitflags", + "bitflags 2.4.1", "cexpr", "clang-sys", "lazy_static", @@ -274,6 +274,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", + "syn 2.0.31", ] [[package]] @@ -288,6 +289,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" + [[package]] name = "bitvec" version = "1.0.1" @@ -322,25 +329,27 @@ dependencies = [ [[package]] name = "boring" -version = "2.1.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c713ad6d8d7a681a43870ac37b89efd2a08015ceb4b256d82707509c1f0b6bb" +checksum = "12a46ed7bcfc8c7243686b870fb0a500ddca45596806088920429dd50aa4089f" dependencies = [ - "bitflags", + "bitflags 2.4.1", "boring-sys", "foreign-types", - "lazy_static", "libc", + "once_cell", ] [[package]] name = "boring-sys" -version = "2.1.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7663d3069437a5ccdb2b5f4f481c8b80446daea10fa8503844e89ac65fcdc363" +checksum = "88a25b0f5d733611b9cc685db5df9dabfc8cdf7e1475518f7f966ce5eb8a0365" dependencies = [ "bindgen", "cmake", + "fs_extra", + "fslock", ] [[package]] @@ -706,6 +715,22 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "fslock" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04412b8935272e3a9bae6f48c7bfff74c2911f60525404edfdd28e49884c3bfb" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "funty" version = "2.0.0" @@ -1536,7 +1561,7 @@ version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ - "bitflags", + "bitflags 1.3.2", ] [[package]] @@ -1589,7 +1614,7 @@ version = "0.37.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62b24138615de35e32031d041a09032ef3487a616d901ca4db224e7d557efae2" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", @@ -1624,7 +1649,7 @@ version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fc758eb7bffce5b308734e9b0c1468893cae9ff70ebf13e7090be8dcbcc83a8" dependencies = [ - "bitflags", + "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", @@ -1874,12 +1899,13 @@ dependencies = [ [[package]] name = "tokio-boring" -version = "2.1.5" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb059337235a89f03252c6285da8f0a6747a85bbd42e9ece70178d578054cba7" +checksum = "db23acf051bc43dd3862ef7b13a8e0f7f274316a17ca77a265dda0b2bea9d1f7" dependencies = [ "boring", "boring-sys", + "once_cell", "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index b29cbb56..eea78935 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ async-trait = "0.1" base64 = "0.21.2" bitvec = "1" bloomfilter = "1.0.9" -boring = "2.1.0" -boring-sys = "2.1.0" +boring = "4.1.0" +boring-sys = "4.1.0" byte_string = "1.0" bytes = "1" chacha20poly1305 = "0.10" @@ -49,7 +49,7 @@ sha2 = "0.10.6" socket2 = {version = "0.4.7", features = ["all"]} spin = "0.9.6" tokio = {version = "1.26", features = ["net", "io-util", "macros", "sync"]} -tokio-boring = "2.1.5" +tokio-boring = "4.1.0" tokio-tungstenite = {version = "0.20", features = ["stream", "handshake"], default-features = false} tokio-util = {version = "0.7", features = ["codec", "net"]} toml = "0.5"