diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-07-12 16:03:57 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-07-13 15:57:42 +0200 |
| commit | ff4dfa4d2e47d845f95d62f65f391883e7ad54b7 (patch) | |
| tree | b15724b15a5c636742986a05a1e874e84c4d8435 | |
| parent | 626649a70f62d51f6c47d83a8412041f95b4c04f (diff) | |
| download | mullvadvpn-ff4dfa4d2e47d845f95d62f65f391883e7ad54b7.tar.xz mullvadvpn-ff4dfa4d2e47d845f95d62f65f391883e7ad54b7.zip | |
Update tonic and prost
| -rw-r--r-- | Cargo.lock | 63 | ||||
| -rw-r--r-- | mullvad-management-interface/Cargo.toml | 8 | ||||
| -rw-r--r-- | mullvad-management-interface/src/lib.rs | 8 | ||||
| -rw-r--r-- | mullvad-tests/Cargo.toml | 6 | ||||
| -rw-r--r-- | talpid-core/Cargo.toml | 6 | ||||
| -rw-r--r-- | talpid-core/src/tunnel/openvpn/mod.rs | 8 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/Cargo.toml | 6 |
7 files changed, 66 insertions, 39 deletions
diff --git a/Cargo.lock b/Cargo.lock index e62b189536..62e1c46fbc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -919,6 +919,18 @@ dependencies = [ ] [[package]] +name = "hyper-timeout" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +dependencies = [ + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", +] + +[[package]] name = "ident_case" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -998,15 +1010,6 @@ dependencies = [ [[package]] name = "itertools" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" -dependencies = [ - "either", -] - -[[package]] -name = "itertools" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319" @@ -1259,7 +1262,7 @@ dependencies = [ "env_logger 0.8.2", "err-derive 0.3.0", "futures", - "itertools 0.10.0", + "itertools", "mullvad-management-interface", "mullvad-paths", "mullvad-types", @@ -1934,9 +1937,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" +checksum = "de5e2533f59d08fcf364fd374ebda0692a70bd6d7e66ef97f306f45c6c5d8020" dependencies = [ "bytes 1.0.1", "prost-derive", @@ -1944,13 +1947,13 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" +checksum = "355f634b43cdd80724ee7848f95770e7e70eefa6dcf14fea676216573b8fd603" dependencies = [ "bytes 1.0.1", "heck", - "itertools 0.9.0", + "itertools", "log", "multimap", "petgraph", @@ -1962,12 +1965,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" +checksum = "600d2f334aa05acb02a755e217ef1ab6dea4d51b58b7846588b747edec04efba" dependencies = [ "anyhow", - "itertools 0.9.0", + "itertools", "proc-macro2", "quote", "syn", @@ -1975,9 +1978,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" +checksum = "603bbd6394701d13f3f25aada59c7de9d35a6a5887cfc156181234a44002771b" dependencies = [ "bytes 1.0.1", "prost", @@ -2728,6 +2731,16 @@ dependencies = [ ] [[package]] +name = "tokio-io-timeout" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90c49f106be240de154571dd31fbe48acb10ba6c6dd6f6517ad603abffa42de9" +dependencies = [ + "pin-project-lite", + "tokio", +] + +[[package]] name = "tokio-macros" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2785,9 +2798,9 @@ dependencies = [ [[package]] name = "tonic" -version = "0.4.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ac42cd97ac6bd2339af5bcabf105540e21e45636ec6fa6aae5e85d44db31be0" +checksum = "b584f064fdfc50017ec39162d5aebce49912f1eb16fd128e04b7f4ce4907c7e5" dependencies = [ "async-stream", "async-trait", @@ -2799,6 +2812,7 @@ dependencies = [ "http", "http-body", "hyper", + "hyper-timeout", "percent-encoding", "pin-project 1.0.5", "prost", @@ -2807,6 +2821,7 @@ dependencies = [ "tokio-stream", "tokio-util", "tower", + "tower-layer", "tower-service", "tracing", "tracing-futures", @@ -2814,9 +2829,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c695de27302f4697191dda1c7178131a8cb805463dda02864acb80fe1322fdcf" +checksum = "25db9a497663a9a779693ef67b6e6aef8345b3d3ff8d50ef92eae6c88cb1e386" dependencies = [ "proc-macro2", "prost-build", diff --git a/mullvad-management-interface/Cargo.toml b/mullvad-management-interface/Cargo.toml index 895281eddc..8b32c42f29 100644 --- a/mullvad-management-interface/Cargo.toml +++ b/mullvad-management-interface/Cargo.toml @@ -12,10 +12,10 @@ err-derive = "0.3.0" mullvad-types = { path = "../mullvad-types" } mullvad-paths = { path = "../mullvad-paths" } talpid-types = { path = "../talpid-types" } -tonic = "0.4" +tonic = "0.5" tower = "0.4" -prost = "0.7" -prost-types = "0.7" +prost = "0.8" +prost-types = "0.8" parity-tokio-ipc = "0.9" futures = "0.3" tokio = { version = "1.8", features = [ "rt" ] } @@ -27,4 +27,4 @@ nix = "0.19" lazy_static = "1.0" [build-dependencies] -tonic-build = { version = "0.4", default-features = false, features = ["transport", "prost"] } +tonic-build = { version = "0.5", default-features = false, features = ["transport", "prost"] } diff --git a/mullvad-management-interface/src/lib.rs b/mullvad-management-interface/src/lib.rs index f47f2799df..69cdc01d74 100644 --- a/mullvad-management-interface/src/lib.rs +++ b/mullvad-management-interface/src/lib.rs @@ -106,7 +106,13 @@ pub async fn spawn_rpc_server<T: ManagementService>( #[derive(Debug)] struct StreamBox<T: AsyncRead + AsyncWrite>(pub T); -impl<T: AsyncRead + AsyncWrite> Connected for StreamBox<T> {} +impl<T: AsyncRead + AsyncWrite> Connected for StreamBox<T> { + type ConnectInfo = Option<()>; + + fn connect_info(&self) -> Self::ConnectInfo { + None + } +} impl<T: AsyncRead + AsyncWrite + Unpin> AsyncRead for StreamBox<T> { fn poll_read( mut self: Pin<&mut Self>, diff --git a/mullvad-tests/Cargo.toml b/mullvad-tests/Cargo.toml index 2628695a30..d0dc132b22 100644 --- a/mullvad-tests/Cargo.toml +++ b/mullvad-tests/Cargo.toml @@ -26,13 +26,13 @@ futures = "0.1.23" tokio01 = { package = "tokio", version = "0.1" } tokio-timer = "0.1" tokio = { version = "1.8", features = [ "io-util", "process", "rt", "rt-multi-thread", "fs"] } -tonic = "0.4" +tonic = "0.5" tower = "0.4" -prost = "0.7" +prost = "0.8" parity-tokio-ipc = "0.9" [build-dependencies] -tonic-build = { version = "0.4", default-features = false, features = ["transport", "prost"] } +tonic-build = { version = "0.5", default-features = false, features = ["transport", "prost"] } [target.'cfg(unix)'.dependencies] libc = "0.2" diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml index d13e2dc5b9..2b223d0bf3 100644 --- a/talpid-core/Cargo.toml +++ b/talpid-core/Cargo.toml @@ -37,8 +37,8 @@ udp-over-tcp = { git = "https://github.com/mullvad/udp-over-tcp", rev = "1e27324 openvpn-plugin = { version = "0.4", features = ["serde", "auth-failed-event"] } parity-tokio-ipc = "0.9" triggered = "0.1.1" -tonic = "0.4" -prost = "0.7" +tonic = "0.5" +prost = "0.8" [target.'cfg(unix)'.dependencies] nix = "0.19" @@ -85,7 +85,7 @@ talpid-platform-metadata = { path = "../talpid-platform-metadata" } memoffset = "0.6" [build-dependencies] -tonic-build = { version = "0.4", default-features = false, features = ["transport", "prost"] } +tonic-build = { version = "0.5", default-features = false, features = ["transport", "prost"] } [dev-dependencies] diff --git a/talpid-core/src/tunnel/openvpn/mod.rs b/talpid-core/src/tunnel/openvpn/mod.rs index 923fd8ed79..8ae967975a 100644 --- a/talpid-core/src/tunnel/openvpn/mod.rs +++ b/talpid-core/src/tunnel/openvpn/mod.rs @@ -1200,7 +1200,13 @@ mod event_server { #[derive(Debug)] pub struct StreamBox<T: AsyncRead + AsyncWrite>(pub T); - impl<T: AsyncRead + AsyncWrite> Connected for StreamBox<T> {} + impl<T: AsyncRead + AsyncWrite> Connected for StreamBox<T> { + type ConnectInfo = Option<()>; + + fn connect_info(&self) -> Self::ConnectInfo { + None + } + } impl<T: AsyncRead + AsyncWrite + Unpin> AsyncRead for StreamBox<T> { fn poll_read( mut self: Pin<&mut Self>, diff --git a/talpid-openvpn-plugin/Cargo.toml b/talpid-openvpn-plugin/Cargo.toml index e2d00aa7df..237fe5ec55 100644 --- a/talpid-openvpn-plugin/Cargo.toml +++ b/talpid-openvpn-plugin/Cargo.toml @@ -20,12 +20,12 @@ tokio = { version = "1.8", features = [ "rt" ] } openvpn-plugin = { version = "0.4", features = ["serde", "log", "auth-failed-event"] } talpid-types = { path = "../talpid-types" } -tonic = "0.4" +tonic = "0.5" tower = "0.4" -prost = "0.7" +prost = "0.8" [build-dependencies] -tonic-build = { version = "0.4", default-features = false, features = ["transport", "prost"] } +tonic-build = { version = "0.5", default-features = false, features = ["transport", "prost"] } [target.'cfg(windows)'.build-dependencies] |
