From 46915f39d8a96dc5acf966d8c3654f9a8b903f83 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Thu, 24 Dec 2020 01:48:52 -0500 Subject: [PATCH 1/3] Bump to `tokio 1.0` and `hyper 0.14` --- Cargo.lock | 254 +++++++++++++++++++++++++++++++++++++------- Cargo.toml | 12 +-- src/bin/server.rs | 9 +- src/s3/Cargo.toml | 2 +- src/tests/record.rs | 29 ++--- 5 files changed, 244 insertions(+), 62 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4429a2e5c2c..77de36073fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -114,11 +114,11 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b72c1f1154e234325b50864a349b9c8e56939e266a4c307c0f159812df2f9537" dependencies = [ - "bytes 0.5.6", "flate2", "futures-core", "memchr", "pin-project-lite 0.2.0", + "tokio 1.0.1", ] [[package]] @@ -261,6 +261,12 @@ version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0e4cec68f03f32e44924783795810fa50a7035d8c8ebe78580ad7e6c703fba38" +[[package]] +name = "bytes" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040" + [[package]] name = "cargo-registry" version = "0.2.2" @@ -300,8 +306,8 @@ dependencies = [ "hex", "htmlescape", "http 0.2.2", - "hyper", - "hyper-tls", + "hyper 0.14.2", + "hyper-tls 0.5.0", "indexmap", "jemallocator", "lazy_static", @@ -310,7 +316,7 @@ dependencies = [ "oauth2", "parking_lot", "rand", - "reqwest", + "reqwest 0.11.0", "scheduled-thread-pool", "semver 0.10.0", "sentry", @@ -320,7 +326,7 @@ dependencies = [ "swirl", "tar", "tempfile", - "tokio", + "tokio 1.0.1", "toml", "tower-service", "tracing", @@ -335,7 +341,7 @@ dependencies = [ "base64 0.13.0", "chrono", "hmac", - "reqwest", + "reqwest 0.11.0", "sha-1 0.9.2", ] @@ -504,15 +510,17 @@ dependencies = [ [[package]] name = "conduit-hyper" -version = "0.3.0-alpha.5.1" +version = "0.3.0-alpha.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b49a5700d37b4304284964370b5cd7ee50f413c425f306596294dffaf515bd8" +checksum = "e8472a55fd8db2bcb94b5723e2d0adec94a7537fc64d0ea60925e5a65ce08ed6" dependencies = [ + "bytes 1.0.1", "conduit", "http 0.2.2", - "hyper", + "hyper 0.14.2", "percent-encoding", - "tokio", + "tokio 1.0.1", + "tokio-stream", "tower-service", "tracing", ] @@ -1095,8 +1103,28 @@ dependencies = [ "http 0.2.2", "indexmap", "slab", - "tokio", - "tokio-util", + "tokio 0.2.24", + "tokio-util 0.3.1", + "tracing", + "tracing-futures", +] + +[[package]] +name = "h2" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b67e66362108efccd8ac053abafc8b7a8d86a37e6e48fc4f6f7485eb5e9e6a5" +dependencies = [ + "bytes 1.0.1", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http 0.2.2", + "indexmap", + "slab", + "tokio 1.0.1", + "tokio-util 0.6.1", "tracing", "tracing-futures", ] @@ -1228,6 +1256,16 @@ dependencies = [ "http 0.2.2", ] +[[package]] +name = "http-body" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2861bd27ee074e5ee891e8b539837a9430012e249d7f0ca2d795650f579c1994" +dependencies = [ + "bytes 1.0.1", + "http 0.2.2", +] + [[package]] name = "httparse" version = "1.3.4" @@ -1250,15 +1288,39 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2", + "h2 0.2.7", "http 0.2.2", - "http-body", + "http-body 0.3.1", "httparse", "httpdate", "itoa", "pin-project 1.0.2", "socket2", - "tokio", + "tokio 0.2.24", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12219dc884514cb4a6a03737f4413c0e01c23a1b059b0156004b23f1e19dccbe" +dependencies = [ + "bytes 1.0.1", + "futures-channel", + "futures-core", + "futures-util", + "h2 0.3.0", + "http 0.2.2", + "http-body 0.4.0", + "httparse", + "httpdate", + "itoa", + "pin-project 1.0.2", + "socket2", + "tokio 1.0.1", "tower-service", "tracing", "want", @@ -1271,12 +1333,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed" dependencies = [ "bytes 0.5.6", - "hyper", + "hyper 0.13.9", "native-tls", - "tokio", + "tokio 0.2.24", "tokio-tls", ] +[[package]] +name = "hyper-tls" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" +dependencies = [ + "bytes 1.0.1", + "hyper 0.14.2", + "native-tls", + "tokio 1.0.1", + "tokio-native-tls", +] + [[package]] name = "hyperx" version = "1.2.0" @@ -1682,21 +1757,23 @@ dependencies = [ "kernel32-sys", "libc", "log", - "miow", + "miow 0.2.2", "net2", "slab", "winapi 0.2.8", ] [[package]] -name = "mio-uds" -version = "0.6.8" +name = "mio" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" +checksum = "e50ae3f04d169fcc9bde0b547d1c205219b7157e07ded9c5aff03e0637cb3ed7" dependencies = [ - "iovec", "libc", - "mio", + "log", + "miow 0.3.6", + "ntapi", + "winapi 0.3.9", ] [[package]] @@ -1711,6 +1788,16 @@ dependencies = [ "ws2_32-sys", ] +[[package]] +name = "miow" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" +dependencies = [ + "socket2", + "winapi 0.3.9", +] + [[package]] name = "native-tls" version = "0.2.7" @@ -1769,6 +1856,15 @@ dependencies = [ "version_check", ] +[[package]] +name = "ntapi" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" +dependencies = [ + "winapi 0.3.9", +] + [[package]] name = "num-integer" version = "0.1.44" @@ -1810,7 +1906,7 @@ dependencies = [ "http 0.1.21", "http 0.2.2", "rand", - "reqwest", + "reqwest 0.10.10", "serde", "serde_json", "sha2 0.8.2", @@ -2281,16 +2377,15 @@ version = "0.10.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0718f81a8e14c4dbb3b34cf23dc6aaf9ab8a0dfec160c534b3dbca1aaa21f47c" dependencies = [ - "async-compression", "base64 0.13.0", "bytes 0.5.6", "encoding_rs", "futures-core", "futures-util", "http 0.2.2", - "http-body", - "hyper", - "hyper-tls", + "http-body 0.3.1", + "hyper 0.13.9", + "hyper-tls 0.4.3", "ipnet", "js-sys", "lazy_static", @@ -2303,7 +2398,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", - "tokio", + "tokio 0.2.24", "tokio-tls", "url", "wasm-bindgen", @@ -2312,6 +2407,43 @@ dependencies = [ "winreg", ] +[[package]] +name = "reqwest" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd281b1030aa675fb90aa994d07187645bb3c8fc756ca766e7c3070b439de9de" +dependencies = [ + "async-compression", + "base64 0.13.0", + "bytes 1.0.1", + "encoding_rs", + "futures-core", + "futures-util", + "http 0.2.2", + "http-body 0.4.0", + "hyper 0.14.2", + "hyper-tls 0.5.0", + "ipnet", + "js-sys", + "lazy_static", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite 0.2.0", + "serde", + "serde_json", + "serde_urlencoded", + "tokio 1.0.1", + "tokio-native-tls", + "tokio-util 0.6.1", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winreg", +] + [[package]] name = "route-recognizer" version = "0.1.13" @@ -2432,7 +2564,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "933beb0343c84eefd69a368318e9291b179e09e51982d49c65d7b362b0e9466f" dependencies = [ "httpdate", - "reqwest", + "reqwest 0.10.10", "sentry-backtrace", "sentry-contexts", "sentry-core", @@ -2988,17 +3120,52 @@ dependencies = [ "futures-core", "iovec", "lazy_static", - "libc", "memchr", - "mio", - "mio-uds", + "mio 0.6.23", "num_cpus", "pin-project-lite 0.1.11", - "signal-hook-registry", "slab", +] + +[[package]] +name = "tokio" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d258221f566b6c803c7b4714abadc080172b272090cdc5e244a6d4dd13c3a6bd" +dependencies = [ + "autocfg", + "bytes 1.0.1", + "libc", + "memchr", + "mio 0.7.7", + "num_cpus", + "once_cell", + "pin-project-lite 0.2.0", + "signal-hook-registry", "winapi 0.3.9", ] +[[package]] +name = "tokio-native-tls" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +dependencies = [ + "native-tls", + "tokio 1.0.1", +] + +[[package]] +name = "tokio-stream" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76066865172052eb8796c686f0b441a93df8b08d40a950b062ffb9a426f00edd" +dependencies = [ + "futures-core", + "pin-project-lite 0.2.0", + "tokio 1.0.1", +] + [[package]] name = "tokio-tls" version = "0.3.1" @@ -3006,7 +3173,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" dependencies = [ "native-tls", - "tokio", + "tokio 0.2.24", ] [[package]] @@ -3020,7 +3187,22 @@ dependencies = [ "futures-sink", "log", "pin-project-lite 0.1.11", - "tokio", + "tokio 0.2.24", +] + +[[package]] +name = "tokio-util" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12ae4751faa60b9f96dd8344d74592e5a17c0c9a220413dbc6942d14139bbfcc" +dependencies = [ + "bytes 1.0.1", + "futures-core", + "futures-sink", + "log", + "pin-project-lite 0.2.0", + "tokio 1.0.1", + "tokio-stream", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 71d769bc85b..ed9c2eb48f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ conduit = "0.9.0-alpha.5" conduit-conditional-get = "0.9.0-alpha.3" conduit-cookie = "0.9.0-alpha.4" conduit-git-http-backend = "0.9.0-alpha.2" -conduit-hyper = "=0.3.0-alpha.5.1" +conduit-hyper = "0.3.0-alpha.6" conduit-middleware = "0.9.0-alpha.4" conduit-router = "0.9.0-alpha.3" conduit-static = "0.9.0-alpha.3" @@ -63,7 +63,7 @@ handlebars = "3.0.1" hex = "0.4" htmlescape = "0.3.1" http = "0.2" -hyper = "0.13" +hyper = { version = "0.14", features = ["client", "http1"] } indexmap = "1.0.2" jemallocator = { version = "0.3", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] } lettre = { version = "0.10.0-alpha.1", default-features = false, features = ["file-transport", "smtp-transport", "native-tls", "hostname", "builder"] } @@ -71,7 +71,7 @@ license-exprs = "^1.4" oauth2 = { version = "3.0.0", default-features = false, features = ["reqwest-010"] } parking_lot = "0.11" rand = "0.7" -reqwest = { version = "0.10", features = ["blocking", "gzip", "json"] } +reqwest = { version = "0.11", features = ["blocking", "gzip", "json"] } scheduled-thread-pool = "0.2.0" semver = { version = "0.10", features = ["diesel", "serde"] } sentry = "0.21.0" @@ -81,7 +81,7 @@ sha2 = "0.9" swirl = { git = "https://github.com/sgrif/swirl.git", rev = "e87cf37" } tar = "0.4.16" tempfile = "3" -tokio = { version = "0.2", default-features = false, features = ["net", "signal", "io-std"]} +tokio = { version = "1", features = ["net", "signal", "io-std", "io-util", "rt-multi-thread"]} toml = "0.5" tracing = "0.1" tracing-subscriber = "0.2" @@ -91,9 +91,9 @@ url = "2.1" claim = "0.4.0" conduit-test = "0.9.0-alpha.4" diesel_migrations = { version = "1.3.0", features = ["postgres"] } -hyper-tls = "0.4" +hyper-tls = "0.5" lazy_static = "1.0" -tokio = { version = "0.2", default-features = false, features = ["stream"]} +tokio = "1" tower-service = "0.3.0" [build-dependencies] diff --git a/src/bin/server.rs b/src/bin/server.rs index 1628b456ace..fbbef992f33 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -93,11 +93,10 @@ fn main() -> Result<(), Box> { println!("Booting with a hyper based server"); - let mut rt = tokio::runtime::Builder::new() - .threaded_scheduler() + let rt = tokio::runtime::Builder::new_multi_thread() .enable_all() - .core_threads(CORE_THREADS) - .max_threads(threads as usize + CORE_THREADS) + .worker_threads(CORE_THREADS) + .max_blocking_threads(threads as usize) .build() .unwrap(); @@ -154,7 +153,7 @@ fn main() -> Result<(), Box> { // Block the main thread until the server has shutdown match server { - Hyper(mut rt, server) => { + Hyper(rt, server) => { rt.block_on(async { server.await.unwrap() }); } Civet(server) => { diff --git a/src/s3/Cargo.toml b/src/s3/Cargo.toml index 912db3c9e87..504f675881b 100644 --- a/src/s3/Cargo.toml +++ b/src/s3/Cargo.toml @@ -18,4 +18,4 @@ base64 = "0.13" chrono = "0.4" sha-1 = "0.9" hmac = "0.10" -reqwest = { version = "0.10", features = ["blocking"] } +reqwest = { version = "0.11", features = ["blocking"] } diff --git a/src/tests/record.rs b/src/tests/record.rs index b822fecb57c..cb6abf263de 100644 --- a/src/tests/record.rs +++ b/src/tests/record.rs @@ -107,10 +107,7 @@ pub fn proxy() -> (String, Bomb) { let (quittx, quitrx) = oneshot::channel(); let thread = thread::spawn(move || { - let mut rt = assert_ok!(runtime::Builder::new() - .basic_scheduler() - .enable_io() - .build()); + let rt = assert_ok!(runtime::Builder::new_current_thread().enable_io().build()); let client = if let Record::Capture(_, _) = record { Some(hyper::Client::builder().build(hyper_tls::HttpsConnector::new())) @@ -118,21 +115,25 @@ pub fn proxy() -> (String, Bomb) { None }; - let mut listener = assert_ok!(rt.block_on(TcpListener::bind("127.0.0.1:0"))); + let listener = assert_ok!(rt.block_on(TcpListener::bind("127.0.0.1:0"))); url_tx .send(format!("http://{}", assert_ok!(listener.local_addr()))) .unwrap(); let record = Arc::new(Mutex::new(record)); - let srv = Server::builder(hyper::server::accept::from_stream(listener.incoming())) - .serve(Proxy { - sink: sink2, - record: Arc::clone(&record), - client, - }) - .with_graceful_shutdown(async { - quitrx.await.ok(); - }); + let srv = Server::builder(hyper::server::accept::poll_fn(move |cx| { + listener + .poll_accept(cx) + .map(|res| Some(res.map(|(stream, _)| stream))) + })) + .serve(Proxy { + sink: sink2, + record: Arc::clone(&record), + client, + }) + .with_graceful_shutdown(async { + quitrx.await.ok(); + }); rt.block_on(srv).ok(); From e9b95d00105feed3f949f69f3f8378955a107885 Mon Sep 17 00:00:00 2001 From: Justin Geibel Date: Wed, 6 Jan 2021 19:06:56 -0500 Subject: [PATCH 2/3] Bump to a new oauth2 alpha --- Cargo.lock | 176 ++++++++++++++++++++++++++++++++++++----------------- Cargo.toml | 2 +- 2 files changed, 121 insertions(+), 57 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 77de36073fe..a06afbba757 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -245,16 +245,6 @@ version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" -[[package]] -name = "bytes" -version = "0.4.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" -dependencies = [ - "byteorder", - "iovec", -] - [[package]] name = "bytes" version = "0.5.6" @@ -305,7 +295,7 @@ dependencies = [ "handlebars", "hex", "htmlescape", - "http 0.2.2", + "http", "hyper 0.14.2", "hyper-tls 0.5.0", "indexmap", @@ -322,7 +312,7 @@ dependencies = [ "sentry", "serde", "serde_json", - "sha2 0.9.2", + "sha2", "swirl", "tar", "tempfile", @@ -471,7 +461,7 @@ version = "0.9.0-alpha.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ce8954d399f2fcb0900b06973b4624538b8d8e46d38c12be237dd3cc8e95cfc" dependencies = [ - "http 0.2.2", + "http", ] [[package]] @@ -516,7 +506,7 @@ checksum = "e8472a55fd8db2bcb94b5723e2d0adec94a7537fc64d0ea60925e5a65ce08ed6" dependencies = [ "bytes 1.0.1", "conduit", - "http 0.2.2", + "http", "hyper 0.14.2", "percent-encoding", "tokio 1.0.1", @@ -607,7 +597,7 @@ dependencies = [ "hkdf", "hmac", "rand", - "sha2 0.9.2", + "sha2", "time 0.2.23", "version_check", ] @@ -1100,7 +1090,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http 0.2.2", + "http", "indexmap", "slab", "tokio 0.2.24", @@ -1120,7 +1110,7 @@ dependencies = [ "futures-core", "futures-sink", "futures-util", - "http 0.2.2", + "http", "indexmap", "slab", "tokio 1.0.1", @@ -1224,17 +1214,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9025058dae765dee5070ec375f591e2ba14638c63feff74f13805a72e523163" -[[package]] -name = "http" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6ccf5ede3a895d8856620237b2f02972c1bbc78d2965ad7fe8838d4a0ed41f0" -dependencies = [ - "bytes 0.4.12", - "fnv", - "itoa", -] - [[package]] name = "http" version = "0.2.2" @@ -1253,7 +1232,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" dependencies = [ "bytes 0.5.6", - "http 0.2.2", + "http", ] [[package]] @@ -1263,7 +1242,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2861bd27ee074e5ee891e8b539837a9430012e249d7f0ca2d795650f579c1994" dependencies = [ "bytes 1.0.1", - "http 0.2.2", + "http", ] [[package]] @@ -1289,7 +1268,7 @@ dependencies = [ "futures-core", "futures-util", "h2 0.2.7", - "http 0.2.2", + "http", "http-body 0.3.1", "httparse", "httpdate", @@ -1313,7 +1292,7 @@ dependencies = [ "futures-core", "futures-util", "h2 0.3.0", - "http 0.2.2", + "http", "http-body 0.4.0", "httparse", "httpdate", @@ -1326,6 +1305,21 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-rustls" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" +dependencies = [ + "futures-util", + "hyper 0.14.2", + "log", + "rustls", + "tokio 1.0.1", + "tokio-rustls", + "webpki", +] + [[package]] name = "hyper-tls" version = "0.4.3" @@ -1360,7 +1354,7 @@ checksum = "2adce67e2c21cd95288ae3d9f2bbb2762cf17c03744628d49679f315ed1e2e58" dependencies = [ "base64 0.13.0", "bytes 0.5.6", - "http 0.2.2", + "http", "httparse", "httpdate", "language-tags", @@ -1896,21 +1890,19 @@ dependencies = [ [[package]] name = "oauth2" -version = "3.0.0" +version = "4.0.0-alpha.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d21857941367fdd2514553ff1578254267afd9c1e69d2d8592ba98223560a0" +checksum = "14be0cf9da49c1a5b2909ec626949dc549e0adda4e9e7f26e4908f08a5435227" dependencies = [ "base64 0.12.3", - "failure", - "failure_derive", - "http 0.1.21", - "http 0.2.2", + "chrono", + "http", "rand", - "reqwest 0.10.10", + "reqwest 0.11.0", "serde", "serde_json", - "sha2 0.8.2", - "unicode-normalization", + "sha2", + "thiserror", "url", ] @@ -2382,7 +2374,7 @@ dependencies = [ "encoding_rs", "futures-core", "futures-util", - "http 0.2.2", + "http", "http-body 0.3.1", "hyper 0.13.9", "hyper-tls 0.4.3", @@ -2419,9 +2411,10 @@ dependencies = [ "encoding_rs", "futures-core", "futures-util", - "http 0.2.2", + "http", "http-body 0.4.0", "hyper 0.14.2", + "hyper-rustls", "hyper-tls 0.5.0", "ipnet", "js-sys", @@ -2431,19 +2424,37 @@ dependencies = [ "native-tls", "percent-encoding", "pin-project-lite 0.2.0", + "rustls", "serde", "serde_json", "serde_urlencoded", "tokio 1.0.1", "tokio-native-tls", + "tokio-rustls", "tokio-util 0.6.1", "url", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", + "webpki-roots", "winreg", ] +[[package]] +name = "ring" +version = "0.16.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "024a1e66fea74c66c66624ee5622a7ff0e4b73a13b4f5c326ddb50c708944226" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin", + "untrusted", + "web-sys", + "winapi 0.3.9", +] + [[package]] name = "route-recognizer" version = "0.1.13" @@ -2471,6 +2482,19 @@ dependencies = [ "semver 0.9.0", ] +[[package]] +name = "rustls" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064fd21ff87c6e87ed4506e68beb42459caa4a0e2eb144932e6776768556980b" +dependencies = [ + "base64 0.13.0", + "log", + "ring", + "sct", + "webpki", +] + [[package]] name = "ryu" version = "1.0.5" @@ -2508,6 +2532,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "sct" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3042af939fca8c3453b7af0f1c66e533a15a86169e39de2657310ade8f98d3c" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "security-framework" version = "2.0.0" @@ -2711,18 +2745,6 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" -[[package]] -name = "sha2" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a256f46ea78a0c0d9ff00077504903ac881a1dafdc20da66545699e7776b3e69" -dependencies = [ - "block-buffer 0.7.3", - "digest 0.8.1", - "fake-simd", - "opaque-debug 0.2.3", -] - [[package]] name = "sha2" version = "0.9.2" @@ -2809,6 +2831,12 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + [[package]] name = "standback" version = "0.2.14" @@ -3155,6 +3183,17 @@ dependencies = [ "tokio 1.0.1", ] +[[package]] +name = "tokio-rustls" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" +dependencies = [ + "rustls", + "tokio 1.0.1", + "webpki", +] + [[package]] name = "tokio-stream" version = "0.1.2" @@ -3416,6 +3455,12 @@ dependencies = [ "subtle", ] +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + [[package]] name = "url" version = "2.2.0" @@ -3563,6 +3608,25 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "webpki" +version = "0.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "webpki-roots" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82015b7e0b8bad8185994674a13a93306bea76cf5a16c5a181382fd3a5ec2376" +dependencies = [ + "webpki", +] + [[package]] name = "winapi" version = "0.2.8" diff --git a/Cargo.toml b/Cargo.toml index ed9c2eb48f1..27262ef4976 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ indexmap = "1.0.2" jemallocator = { version = "0.3", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] } lettre = { version = "0.10.0-alpha.1", default-features = false, features = ["file-transport", "smtp-transport", "native-tls", "hostname", "builder"] } license-exprs = "^1.4" -oauth2 = { version = "3.0.0", default-features = false, features = ["reqwest-010"] } +oauth2 = { version = "4.0.0-alpha.3", default-features = false, features = ["reqwest"] } parking_lot = "0.11" rand = "0.7" reqwest = { version = "0.11", features = ["blocking", "gzip", "json"] } From da3250f710142ef0d8a3af1ec42132b2142451f7 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 14 Jan 2021 00:53:31 +0100 Subject: [PATCH 3/3] Update `sentry` to v0.22.0 --- Cargo.lock | 561 ++++++++++++++++------------------------------------- Cargo.toml | 2 +- 2 files changed, 169 insertions(+), 394 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a06afbba757..a32b044c7d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,7 +99,7 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -117,8 +117,8 @@ dependencies = [ "flate2", "futures-core", "memchr", - "pin-project-lite 0.2.0", - "tokio 1.0.1", + "pin-project-lite", + "tokio", ] [[package]] @@ -129,7 +129,7 @@ checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ "hermit-abi", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -176,15 +176,6 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" -[[package]] -name = "bitmaps" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" -dependencies = [ - "typenum", -] - [[package]] name = "bitvec" version = "0.19.4" @@ -296,8 +287,8 @@ dependencies = [ "hex", "htmlescape", "http", - "hyper 0.14.2", - "hyper-tls 0.5.0", + "hyper", + "hyper-tls", "indexmap", "jemallocator", "lazy_static", @@ -305,8 +296,8 @@ dependencies = [ "license-exprs", "oauth2", "parking_lot", - "rand", - "reqwest 0.11.0", + "rand 0.7.3", + "reqwest", "scheduled-thread-pool", "semver 0.10.0", "sentry", @@ -316,7 +307,7 @@ dependencies = [ "swirl", "tar", "tempfile", - "tokio 1.0.1", + "tokio", "toml", "tower-service", "tracing", @@ -331,7 +322,7 @@ dependencies = [ "base64 0.13.0", "chrono", "hmac", - "reqwest 0.11.0", + "reqwest", "sha-1 0.9.2", ] @@ -367,7 +358,7 @@ dependencies = [ "num-traits", "serde", "time 0.1.44", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -507,9 +498,9 @@ dependencies = [ "bytes 1.0.1", "conduit", "http", - "hyper 0.14.2", + "hyper", "percent-encoding", - "tokio 1.0.1", + "tokio", "tokio-stream", "tower-service", "tracing", @@ -576,7 +567,7 @@ dependencies = [ "regex", "terminal_size", "unicode-width", - "winapi 0.3.9", + "winapi", "winapi-util", ] @@ -596,7 +587,7 @@ dependencies = [ "base64 0.12.3", "hkdf", "hmac", - "rand", + "rand 0.7.3", "sha2", "time 0.2.23", "version_check", @@ -675,7 +666,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b57a92e9749e10f25a171adcebfafe72991d45e7ec2dcb853e8f83d9dafaeb08" dependencies = [ "nix", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -844,7 +835,7 @@ dependencies = [ "cfg-if 1.0.0", "libc", "redox_syscall", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -896,22 +887,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394" -[[package]] -name = "fuchsia-zircon" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" -dependencies = [ - "bitflags", - "fuchsia-zircon-sys", -] - -[[package]] -name = "fuchsia-zircon-sys" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" - [[package]] name = "funty" version = "1.1.0" @@ -1003,8 +978,8 @@ dependencies = [ "cc", "libc", "log", - "rustc_version", - "winapi 0.3.9", + "rustc_version 0.2.3", + "winapi", ] [[package]] @@ -1037,6 +1012,17 @@ dependencies = [ "wasi 0.9.0+wasi-snapshot-preview1", ] +[[package]] +name = "getrandom" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4060f4657be78b8e766215b02b18a2e862d83745545de804638e2b545e81aee6" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.10.0+wasi-snapshot-preview1", +] + [[package]] name = "ghash" version = "0.3.1" @@ -1079,26 +1065,6 @@ dependencies = [ "url", ] -[[package]] -name = "h2" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e4728fd124914ad25e99e3d15a9361a879f6620f63cb56bbb08f95abb97a535" -dependencies = [ - "bytes 0.5.6", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio 0.2.24", - "tokio-util 0.3.1", - "tracing", - "tracing-futures", -] - [[package]] name = "h2" version = "0.3.0" @@ -1113,8 +1079,8 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 1.0.1", - "tokio-util 0.6.1", + "tokio", + "tokio-util", "tracing", "tracing-futures", ] @@ -1191,7 +1157,7 @@ checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" dependencies = [ "libc", "match_cfg", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1225,16 +1191,6 @@ dependencies = [ "itoa", ] -[[package]] -name = "http-body" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" -dependencies = [ - "bytes 0.5.6", - "http", -] - [[package]] name = "http-body" version = "0.4.0" @@ -1257,30 +1213,6 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" -[[package]] -name = "hyper" -version = "0.13.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ad767baac13b44d4529fcf58ba2cd0995e36e7b435bc5b039de6f47e880dbf" -dependencies = [ - "bytes 0.5.6", - "futures-channel", - "futures-core", - "futures-util", - "h2 0.2.7", - "http", - "http-body 0.3.1", - "httparse", - "httpdate", - "itoa", - "pin-project 1.0.2", - "socket2", - "tokio 0.2.24", - "tower-service", - "tracing", - "want", -] - [[package]] name = "hyper" version = "0.14.2" @@ -1291,15 +1223,15 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2 0.3.0", + "h2", "http", - "http-body 0.4.0", + "http-body", "httparse", "httpdate", "itoa", "pin-project 1.0.2", "socket2", - "tokio 1.0.1", + "tokio", "tower-service", "tracing", "want", @@ -1312,27 +1244,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f9f7a97316d44c0af9b0301e65010573a853a9fc97046d7331d7f6bc0fd5a64" dependencies = [ "futures-util", - "hyper 0.14.2", + "hyper", "log", "rustls", - "tokio 1.0.1", + "tokio", "tokio-rustls", "webpki", ] -[[package]] -name = "hyper-tls" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed" -dependencies = [ - "bytes 0.5.6", - "hyper 0.13.9", - "native-tls", - "tokio 0.2.24", - "tokio-tls", -] - [[package]] name = "hyper-tls" version = "0.5.0" @@ -1340,9 +1259,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" dependencies = [ "bytes 1.0.1", - "hyper 0.14.2", + "hyper", "native-tls", - "tokio 1.0.1", + "tokio", "tokio-native-tls", ] @@ -1375,20 +1294,6 @@ dependencies = [ "unicode-normalization", ] -[[package]] -name = "im" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "111c1983f3c5bb72732df25cddacee9b546d08325fb584b5ebd38148be7b0246" -dependencies = [ - "bitmaps", - "rand_core", - "rand_xoshiro", - "sized-chunks", - "typenum", - "version_check", -] - [[package]] name = "indexmap" version = "1.6.1" @@ -1430,15 +1335,6 @@ dependencies = [ "syn", ] -[[package]] -name = "iovec" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" -dependencies = [ - "libc", -] - [[package]] name = "ipnet" version = "2.3.0" @@ -1490,16 +1386,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "kernel32-sys" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" -dependencies = [ - "winapi 0.2.8", - "winapi-build", -] - [[package]] name = "language-tags" version = "0.2.2" @@ -1527,7 +1413,7 @@ dependencies = [ "nom", "once_cell", "quoted_printable", - "rand", + "rand 0.7.3", "regex", "serde", "serde_json", @@ -1718,16 +1604,6 @@ version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" -[[package]] -name = "mime_guess" -version = "2.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2684d4c2e97d99848d30b324b00c8fcc7e5c897b7cbb5819b09e7c90e8baf212" -dependencies = [ - "mime", - "unicase", -] - [[package]] name = "miniz_oxide" version = "0.4.3" @@ -1738,25 +1614,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "mio" -version = "0.6.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4" -dependencies = [ - "cfg-if 0.1.10", - "fuchsia-zircon", - "fuchsia-zircon-sys", - "iovec", - "kernel32-sys", - "libc", - "log", - "miow 0.2.2", - "net2", - "slab", - "winapi 0.2.8", -] - [[package]] name = "mio" version = "0.7.7" @@ -1765,21 +1622,9 @@ checksum = "e50ae3f04d169fcc9bde0b547d1c205219b7157e07ded9c5aff03e0637cb3ed7" dependencies = [ "libc", "log", - "miow 0.3.6", + "miow", "ntapi", - "winapi 0.3.9", -] - -[[package]] -name = "miow" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d" -dependencies = [ - "kernel32-sys", - "net2", - "winapi 0.2.8", - "ws2_32-sys", + "winapi", ] [[package]] @@ -1789,7 +1634,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a33c1b55807fbed163481b5ba66db4b2fa6cde694a5027be10fb724206c5897" dependencies = [ "socket2", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1810,17 +1655,6 @@ dependencies = [ "tempfile", ] -[[package]] -name = "net2" -version = "0.2.37" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "winapi 0.3.9", -] - [[package]] name = "new_debug_unreachable" version = "1.0.4" @@ -1856,7 +1690,7 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -1897,8 +1731,8 @@ dependencies = [ "base64 0.12.3", "chrono", "http", - "rand", - "reqwest 0.11.0", + "rand 0.7.3", + "reqwest", "serde", "serde_json", "sha2", @@ -1991,7 +1825,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec 1.5.1", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2069,7 +1903,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" dependencies = [ "phf_shared", - "rand", + "rand 0.7.3", ] [[package]] @@ -2121,12 +1955,6 @@ dependencies = [ "syn", ] -[[package]] -name = "pin-project-lite" -version = "0.1.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c917123afa01924fc84bb20c4c03f004d9c38e5127e3c039bbf7f4b9c76a2f6b" - [[package]] name = "pin-project-lite" version = "0.2.0" @@ -2266,14 +2094,26 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ - "getrandom", + "getrandom 0.1.15", "libc", - "rand_chacha", - "rand_core", - "rand_hc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc 0.2.0", "rand_pcg", ] +[[package]] +name = "rand" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18519b42a40024d661e1714153e9ad0c3de27cd495760ceb09710920f1098b1e" +dependencies = [ + "libc", + "rand_chacha 0.3.0", + "rand_core 0.6.1", + "rand_hc 0.3.0", +] + [[package]] name = "rand_chacha" version = "0.2.2" @@ -2281,7 +2121,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.1", ] [[package]] @@ -2290,7 +2140,16 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" dependencies = [ - "getrandom", + "getrandom 0.1.15", +] + +[[package]] +name = "rand_core" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c026d7df8b298d90ccbbc5190bd04d85e159eaf5576caeacf8741da93ccbd2e5" +dependencies = [ + "getrandom 0.2.1", ] [[package]] @@ -2299,25 +2158,25 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" dependencies = [ - "rand_core", + "rand_core 0.5.1", ] [[package]] -name = "rand_pcg" -version = "0.2.1" +name = "rand_hc" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" dependencies = [ - "rand_core", + "rand_core 0.6.1", ] [[package]] -name = "rand_xoshiro" -version = "0.4.0" +name = "rand_pcg" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" dependencies = [ - "rand_core", + "rand_core 0.5.1", ] [[package]] @@ -2360,43 +2219,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "reqwest" -version = "0.10.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0718f81a8e14c4dbb3b34cf23dc6aaf9ab8a0dfec160c534b3dbca1aaa21f47c" -dependencies = [ - "base64 0.13.0", - "bytes 0.5.6", - "encoding_rs", - "futures-core", - "futures-util", - "http", - "http-body 0.3.1", - "hyper 0.13.9", - "hyper-tls 0.4.3", - "ipnet", - "js-sys", - "lazy_static", - "log", - "mime", - "mime_guess", - "native-tls", - "percent-encoding", - "pin-project-lite 0.2.0", - "serde", - "serde_json", - "serde_urlencoded", - "tokio 0.2.24", - "tokio-tls", - "url", - "wasm-bindgen", - "wasm-bindgen-futures", - "web-sys", - "winreg", + "winapi", ] [[package]] @@ -2412,10 +2235,10 @@ dependencies = [ "futures-core", "futures-util", "http", - "http-body 0.4.0", - "hyper 0.14.2", + "http-body", + "hyper", "hyper-rustls", - "hyper-tls 0.5.0", + "hyper-tls", "ipnet", "js-sys", "lazy_static", @@ -2423,15 +2246,15 @@ dependencies = [ "mime", "native-tls", "percent-encoding", - "pin-project-lite 0.2.0", + "pin-project-lite", "rustls", "serde", "serde_json", "serde_urlencoded", - "tokio 1.0.1", + "tokio", "tokio-native-tls", "tokio-rustls", - "tokio-util 0.6.1", + "tokio-util", "url", "wasm-bindgen", "wasm-bindgen-futures", @@ -2452,7 +2275,7 @@ dependencies = [ "spin", "untrusted", "web-sys", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2482,6 +2305,15 @@ dependencies = [ "semver 0.9.0", ] +[[package]] +name = "rustc_version" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "397d411cfc34097bdb176984180f7d9980eb161aaf1368ceea96c9834d8f8b85" +dependencies = [ + "semver 0.11.0", +] + [[package]] name = "rustls" version = "0.19.0" @@ -2508,7 +2340,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" dependencies = [ "lazy_static", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2571,7 +2403,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" dependencies = [ - "semver-parser", + "semver-parser 0.7.0", ] [[package]] @@ -2581,24 +2413,42 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "394cec28fa623e00903caf7ba4fa6fb9a0e260280bb8cdbbba029611108a0190" dependencies = [ "diesel", - "semver-parser", + "semver-parser 0.7.0", "serde", ] +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser 0.10.2", +] + [[package]] name = "semver-parser" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +[[package]] +name = "semver-parser" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +dependencies = [ + "pest", +] + [[package]] name = "sentry" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "933beb0343c84eefd69a368318e9291b179e09e51982d49c65d7b362b0e9466f" +checksum = "f27c425b07c7186018e2ef9ac3a25b01dae78b05a7ef604d07f216b9f59b42b4" dependencies = [ "httpdate", - "reqwest 0.10.10", + "reqwest", "sentry-backtrace", "sentry-contexts", "sentry-core", @@ -2607,9 +2457,9 @@ dependencies = [ [[package]] name = "sentry-backtrace" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38e528fb457baf53fcd6c90beb420705f35c12c3d8caed8817dcf7be00eff7c7" +checksum = "80a5b9d9be0a0e25b2aaa5f3e9815d7fc6b8904f800c41800e5583652b5ca733" dependencies = [ "backtrace", "lazy_static", @@ -2619,28 +2469,27 @@ dependencies = [ [[package]] name = "sentry-contexts" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce3a560a34cffac347f0b588fc29b31db969e27bf57208f946d6a2d588668b0b" +checksum = "2410b212de9b2eb7427d2bf9a1f4f5cb2aa14359863d982066ead00d6de9bce0" dependencies = [ "hostname", "lazy_static", "libc", "regex", - "rustc_version", + "rustc_version 0.3.2", "sentry-core", "uname", ] [[package]] name = "sentry-core" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17b8c235063c1007fd8e2fc7e35ce7eac09dd678d198ecc996daee33d46b3dcc" +checksum = "cbbe485e384cb5540940e65d729820ffcbedc0c902fcb27081e44dacfe6a0c34" dependencies = [ - "im", "lazy_static", - "rand", + "rand 0.8.2", "sentry-types", "serde", "serde_json", @@ -2648,9 +2497,9 @@ dependencies = [ [[package]] name = "sentry-panic" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04ee338d8292fcdcfb032929c9f53bc0dfac8e0b9d3096be79ceee96818851ed" +checksum = "89cf195cff04a50b90e6b9ac8b4874dc63b8e0a466f193702801ef98baa9bd90" dependencies = [ "sentry-backtrace", "sentry-core", @@ -2658,9 +2507,9 @@ dependencies = [ [[package]] name = "sentry-types" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fbbea6debac0a24880a38239d4c2fc3dbb0b1b398f621bea03ed761796b7dfb" +checksum = "bc5e777cff85b44538ac766a9604676b7180d01d2566e76b2ac41426c734498c" dependencies = [ "chrono", "debugid", @@ -2789,16 +2638,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7" -[[package]] -name = "sized-chunks" -version = "0.6.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ec31ceca5644fa6d444cc77548b88b67f46db6f7c71683b0f9336e671830d2f" -dependencies = [ - "bitmaps", - "typenum", -] - [[package]] name = "slab" version = "0.4.2" @@ -2828,7 +2667,7 @@ checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" dependencies = [ "cfg-if 1.0.0", "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -2853,7 +2692,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" dependencies = [ "discard", - "rustc_version", + "rustc_version 0.2.3", "stdweb-derive", "stdweb-internal-macros", "stdweb-internal-runtime", @@ -3005,10 +2844,10 @@ checksum = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" dependencies = [ "cfg-if 0.1.10", "libc", - "rand", + "rand 0.7.3", "redox_syscall", "remove_dir_all", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3038,7 +2877,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4bd2d183bd3fac5f5fe38ddbeb4dc9aec4a39a9d7d59e7491d900302da01cbe1" dependencies = [ "libc", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3096,7 +2935,7 @@ checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", "wasi 0.10.0+wasi-snapshot-preview1", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3111,7 +2950,7 @@ dependencies = [ "stdweb", "time-macros", "version_check", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3137,24 +2976,6 @@ dependencies = [ "syn", ] -[[package]] -name = "tokio" -version = "0.2.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099837d3464c16a808060bb3f02263b412f6fafcb5d01c533d309985fbeebe48" -dependencies = [ - "bytes 0.5.6", - "fnv", - "futures-core", - "iovec", - "lazy_static", - "memchr", - "mio 0.6.23", - "num_cpus", - "pin-project-lite 0.1.11", - "slab", -] - [[package]] name = "tokio" version = "1.0.1" @@ -3165,12 +2986,12 @@ dependencies = [ "bytes 1.0.1", "libc", "memchr", - "mio 0.7.7", + "mio", "num_cpus", "once_cell", - "pin-project-lite 0.2.0", + "pin-project-lite", "signal-hook-registry", - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3180,7 +3001,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" dependencies = [ "native-tls", - "tokio 1.0.1", + "tokio", ] [[package]] @@ -3190,7 +3011,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc6844de72e57df1980054b38be3a9f4702aba4858be64dd700181a8a6d0e1b6" dependencies = [ "rustls", - "tokio 1.0.1", + "tokio", "webpki", ] @@ -3201,32 +3022,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76066865172052eb8796c686f0b441a93df8b08d40a950b062ffb9a426f00edd" dependencies = [ "futures-core", - "pin-project-lite 0.2.0", - "tokio 1.0.1", -] - -[[package]] -name = "tokio-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" -dependencies = [ - "native-tls", - "tokio 0.2.24", -] - -[[package]] -name = "tokio-util" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" -dependencies = [ - "bytes 0.5.6", - "futures-core", - "futures-sink", - "log", - "pin-project-lite 0.1.11", - "tokio 0.2.24", + "pin-project-lite", + "tokio", ] [[package]] @@ -3239,8 +3036,8 @@ dependencies = [ "futures-core", "futures-sink", "log", - "pin-project-lite 0.2.0", - "tokio 1.0.1", + "pin-project-lite", + "tokio", "tokio-stream", ] @@ -3267,7 +3064,7 @@ checksum = "9f47026cdc4080c07e49b37087de021820269d996f581aac150ef9e5583eefe3" dependencies = [ "cfg-if 1.0.0", "log", - "pin-project-lite 0.2.0", + "pin-project-lite", "tracing-attributes", "tracing-core", ] @@ -3486,7 +3283,7 @@ version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fde2f6a4bea1d6e007c4ad38c6839fa71cbb63b6dbf5b595aa38dc9b1093c11" dependencies = [ - "rand", + "rand 0.7.3", "serde", ] @@ -3627,12 +3424,6 @@ dependencies = [ "webpki", ] -[[package]] -name = "winapi" -version = "0.2.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" - [[package]] name = "winapi" version = "0.3.9" @@ -3643,12 +3434,6 @@ dependencies = [ "winapi-x86_64-pc-windows-gnu", ] -[[package]] -name = "winapi-build" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" - [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" @@ -3661,7 +3446,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" dependencies = [ - "winapi 0.3.9", + "winapi", ] [[package]] @@ -3676,17 +3461,7 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" dependencies = [ - "winapi 0.3.9", -] - -[[package]] -name = "ws2_32-sys" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" -dependencies = [ - "winapi 0.2.8", - "winapi-build", + "winapi", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 27262ef4976..09cc543030c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ rand = "0.7" reqwest = { version = "0.11", features = ["blocking", "gzip", "json"] } scheduled-thread-pool = "0.2.0" semver = { version = "0.10", features = ["diesel", "serde"] } -sentry = "0.21.0" +sentry = "0.22" serde = { version = "1.0.0", features = ["derive"] } serde_json = "1.0.0" sha2 = "0.9"