From 48947bbf8a6ed6a47c0f7725451869451bdf1cb2 Mon Sep 17 00:00:00 2001 From: Tif Tran Date: Wed, 11 Aug 2021 16:12:21 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Revert=20"update=20sentry=20version=20an?= =?UTF-8?q?d=20remove=20ignore=20rustsec-2020-0041=20in=20=E2=80=A6=20(#11?= =?UTF-8?q?37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Revert "update sentry version and remove ignore rustsec-2020-0041 in circle config" This reverts commit 58cc5382eb4a1e1c91f1b1a61fb41423500041be. * comment * add cargo audit ignores --- .circleci/config.yml | 3 +- Cargo.lock | 322 ++++++++++++++++++++++--------------------- Cargo.toml | 5 +- src/main.rs | 3 +- 4 files changed, 173 insertions(+), 160 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 11f43349ab..a260381022 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -37,7 +37,8 @@ commands: name: Core Rust Checks command: | cargo fmt -- --check - cargo audit + # https://github.com/bodil/sized-chunks/issues/11 + cargo audit --ignore RUSTSEC-2020-0041 --ignore RUSTSEC-2021-0078 --ignore RUSTSEC-2021-0079 python-check: steps: - run: diff --git a/Cargo.lock b/Cargo.lock index 9d7ba21ff6..462f0711ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,8 +14,8 @@ dependencies = [ "futures-sink", "log", "pin-project 0.4.28", - "tokio 0.2.25", - "tokio-util 0.3.1", + "tokio", + "tokio-util", ] [[package]] @@ -77,7 +77,7 @@ dependencies = [ "futures-core", "futures-util", "fxhash", - "h2 0.2.7", + "h2", "http", "httparse", "indexmap", @@ -133,7 +133,7 @@ dependencies = [ "futures-channel", "futures-util", "smallvec", - "tokio 0.2.25", + "tokio", ] [[package]] @@ -149,7 +149,7 @@ dependencies = [ "futures-channel", "futures-util", "log", - "mio 0.6.23", + "mio", "mio-uds", "num_cpus", "slab", @@ -423,7 +423,7 @@ checksum = "374bba43fc924d90393ee7768e6f75d223a98307a488fe5bc34b66c3e96932a6" dependencies = [ "async-trait", "futures 0.3.16", - "tokio 0.2.25", + "tokio", ] [[package]] @@ -451,6 +451,15 @@ 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 = "block-buffer" version = "0.9.0" @@ -774,7 +783,7 @@ dependencies = [ "crossbeam-queue", "num_cpus", "serde 1.0.126", - "tokio 0.2.25", + "tokio", ] [[package]] @@ -941,6 +950,28 @@ dependencies = [ "serde 1.0.126", ] +[[package]] +name = "failure" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d32e9bd16cc02eae7db7ef620b392808b89f6a5e16bb3497d159c6b92a0f4f86" +dependencies = [ + "backtrace", + "failure_derive", +] + +[[package]] +name = "failure_derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + [[package]] name = "flate2" version = "1.0.20" @@ -1207,31 +1238,12 @@ dependencies = [ "http", "indexmap", "slab", - "tokio 0.2.25", - "tokio-util 0.3.1", + "tokio", + "tokio-util", "tracing", "tracing-futures", ] -[[package]] -name = "h2" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "825343c4eef0b63f541f8903f395dc5beb362a979b5799a84062527ef1e37726" -dependencies = [ - "bytes 1.0.1", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap", - "slab", - "tokio 1.9.0", - "tokio-util 0.6.7", - "tracing", -] - [[package]] name = "hashbrown" version = "0.11.2" @@ -1321,13 +1333,12 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.2" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60daa14be0e0786db0f03a9e57cb404c9d756eed2b6c62b9ea98ec5743ec75a9" +checksum = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" dependencies = [ - "bytes 1.0.1", + "bytes 0.5.6", "http", - "pin-project-lite 0.2.7", ] [[package]] @@ -1338,9 +1349,9 @@ checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68" [[package]] name = "httpdate" -version = "1.0.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" +checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" [[package]] name = "humantime" @@ -1350,23 +1361,23 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.11" +version = "0.13.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b61cf2d1aebcf6e6352c97b81dc2244ca29194be1b276f5d8ad5c6330fffb11" +checksum = "8a6f157065790a3ed2f88679250419b5cdd96e714a0d65f7797fd337186e96bb" dependencies = [ - "bytes 1.0.1", + "bytes 0.5.6", "futures-channel", "futures-core", "futures-util", - "h2 0.3.3", + "h2", "http", "http-body", "httparse", "httpdate", "itoa", - "pin-project-lite 0.2.7", - "socket2 0.4.1", - "tokio 1.9.0", + "pin-project 1.0.8", + "socket2 0.3.19", + "tokio", "tower-service", "tracing", "want", @@ -1374,15 +1385,15 @@ dependencies = [ [[package]] name = "hyper-tls" -version = "0.5.0" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" +checksum = "d979acc56dcb5b8dddba3917601745e877576475aa046df3226eabdecef78eed" dependencies = [ - "bytes 1.0.1", + "bytes 0.5.6", "hyper", "native-tls", - "tokio 1.9.0", - "tokio-native-tls", + "tokio", + "tokio-tls", ] [[package]] @@ -1413,6 +1424,20 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f7280c75fb2e2fc47080ec80ccc481376923acb04501957fc38f935c3de5088" +[[package]] +name = "im" +version = "14.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "696059c87b83c5a258817ecd67c3af915e3ed141891fc35a1e79908801cf0ce7" +dependencies = [ + "bitmaps", + "rand_core 0.5.1", + "rand_xoshiro", + "sized-chunks", + "typenum", + "version_check", +] + [[package]] name = "indexmap" version = "1.7.0" @@ -1650,6 +1675,16 @@ 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.4" @@ -1673,25 +1708,12 @@ dependencies = [ "kernel32-sys", "libc", "log", - "miow 0.2.2", + "miow", "net2", "slab", "winapi 0.2.8", ] -[[package]] -name = "mio" -version = "0.7.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16" -dependencies = [ - "libc", - "log", - "miow 0.3.7", - "ntapi", - "winapi 0.3.9", -] - [[package]] name = "mio-uds" version = "0.6.8" @@ -1700,7 +1722,7 @@ checksum = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" dependencies = [ "iovec", "libc", - "mio 0.6.23", + "mio", ] [[package]] @@ -1715,15 +1737,6 @@ dependencies = [ "ws2_32-sys", ] -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi 0.3.9", -] - [[package]] name = "mysqlclient-sys" version = "0.2.4" @@ -1774,15 +1787,6 @@ 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" @@ -2222,6 +2226,15 @@ dependencies = [ "rand_core 0.6.3", ] +[[package]] +name = "rand_xoshiro" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9fcdd2e881d02f1d9390ae47ad8e5696a9e4be7b547a1da2afbc61973217004" +dependencies = [ + "rand_core 0.5.1", +] + [[package]] name = "redox_syscall" version = "0.2.9" @@ -2269,12 +2282,12 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.4" +version = "0.10.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "246e9f61b9bb77df069a947682be06e31ac43ea37862e244a69f177694ea6d22" +checksum = "0718f81a8e14c4dbb3b34cf23dc6aaf9ab8a0dfec160c534b3dbca1aaa21f47c" dependencies = [ "base64 0.13.0", - "bytes 1.0.1", + "bytes 0.5.6", "encoding_rs", "futures-core", "futures-util", @@ -2287,14 +2300,15 @@ dependencies = [ "lazy_static", "log", "mime", + "mime_guess", "native-tls", "percent-encoding 2.1.0", "pin-project-lite 0.2.7", "serde 1.0.126", "serde_json", "serde_urlencoded", - "tokio 1.9.0", - "tokio-native-tls", + "tokio", + "tokio-tls", "url 2.2.2", "wasm-bindgen", "wasm-bindgen-futures", @@ -2363,15 +2377,6 @@ dependencies = [ "semver 0.11.0", ] -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver 1.0.4", -] - [[package]] name = "rustversion" version = "1.0.5" @@ -2459,12 +2464,6 @@ dependencies = [ "semver-parser 0.10.2", ] -[[package]] -name = "semver" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" - [[package]] name = "semver-parser" version = "0.7.0" @@ -2482,9 +2481,9 @@ dependencies = [ [[package]] name = "sentry" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "546b9b6f76c26c60ffbcf0b7136e15169fe13d43949b4aadb7c1edc1c3f3a26f" +checksum = "ebd0927ec4a785fc4328abe9089afbe074b3874983b3373fc328a73a9f8310cb" dependencies = [ "curl", "httpdate", @@ -2492,16 +2491,16 @@ dependencies = [ "sentry-backtrace", "sentry-contexts", "sentry-core", + "sentry-failure", "sentry-panic", "serde_json", - "tokio 1.9.0", ] [[package]] name = "sentry-backtrace" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cd0cba2aff36ac98708f7a6e7abbdde82dbaf180d5870c41084dc1b473648b9" +checksum = "4585422b92435a04569441aef8dc3417eb9d7547fd591b67fdf6fdfe204232c9" dependencies = [ "backtrace", "lazy_static", @@ -2511,38 +2510,47 @@ dependencies = [ [[package]] name = "sentry-contexts" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bacf1c62427c6c97b896640d0c4dd204bbd3b79dd192d7cb40891aa5ee11d58" +checksum = "d607b3be0593e026f1c089f0086c244429fe3026eca8e075e8f9e834703ee4c0" dependencies = [ "hostname", "lazy_static", "libc", "regex", - "rustc_version 0.4.0", + "rustc_version 0.2.3", "sentry-core", "uname", ] [[package]] name = "sentry-core" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9a957270c9a430218f8031c866493061a27e35a70250e9527f093563a33ce6b" +checksum = "c9c118347dc0958e66f8b0f3866f0d85bbf8a63bffe64603baebe3f989e929e6" dependencies = [ - "chrono", + "im", "lazy_static", - "rand 0.8.4", + "rand 0.7.3", "sentry-types", - "serde 1.0.126", - "serde_json", +] + +[[package]] +name = "sentry-failure" +version = "0.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8599d375040329e106653a133a1d876af53df8b504cff1de7b6f4471fd41eec3" +dependencies = [ + "failure", + "sentry-backtrace", + "sentry-core", ] [[package]] name = "sentry-panic" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "692bf989f0c99f025e33d7f58e62822c3771f56d189698c66dcc863122255d95" +checksum = "e3943c3fc7fff39244158b625bb2235a27e7e4d0b862b5e52cb57db51e6a6e6e" dependencies = [ "sentry-backtrace", "sentry-core", @@ -2550,9 +2558,9 @@ dependencies = [ [[package]] name = "sentry-types" -version = "0.23.0" +version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4dd2266fee014a86e250e98e389191ecd23be546b5c42b6a2fb9af2972fadac" +checksum = "87b41bac48a3586249431fa9efb88cd1414c3455117eb57c02f5bda9634e158d" dependencies = [ "chrono", "debugid", @@ -2671,6 +2679,16 @@ dependencies = [ "libc", ] +[[package]] +name = "sized-chunks" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d59044ea371ad781ff976f7b06480b9f0180e834eda94114f2afb4afc12b7718" +dependencies = [ + "bitmaps", + "typenum", +] + [[package]] name = "slab" version = "0.4.3" @@ -2935,7 +2953,7 @@ dependencies = [ "slog-term", "thiserror", "time 0.3.0", - "tokio 0.2.25", + "tokio", "url 2.2.2", "urlencoding", "uuid", @@ -2944,6 +2962,18 @@ dependencies = [ "woothee", ] +[[package]] +name = "synstructure" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "474aaa926faa1603c40b7885a9eaea29b444d1cb2850cb7c0e37bb1a4182f4fa" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "unicode-xid", +] + [[package]] name = "take_mut" version = "0.2.2" @@ -3107,8 +3137,9 @@ dependencies = [ "lazy_static", "libc", "memchr", - "mio 0.6.23", + "mio", "mio-uds", + "num_cpus", "pin-project-lite 0.1.12", "signal-hook-registry", "slab", @@ -3116,22 +3147,6 @@ dependencies = [ "winapi 0.3.9", ] -[[package]] -name = "tokio" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b7b349f11a7047e6d1276853e612d152f5e8a352c61917887cc2169e2366b4c" -dependencies = [ - "autocfg", - "bytes 1.0.1", - "libc", - "memchr", - "mio 0.7.13", - "num_cpus", - "pin-project-lite 0.2.7", - "winapi 0.3.9", -] - [[package]] name = "tokio-macros" version = "0.2.6" @@ -3144,13 +3159,13 @@ dependencies = [ ] [[package]] -name = "tokio-native-tls" -version = "0.3.0" +name = "tokio-tls" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" +checksum = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" dependencies = [ "native-tls", - "tokio 1.9.0", + "tokio", ] [[package]] @@ -3164,21 +3179,7 @@ dependencies = [ "futures-sink", "log", "pin-project-lite 0.1.12", - "tokio 0.2.25", -] - -[[package]] -name = "tokio-util" -version = "0.6.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1caa0b0c8d94a049db56b5acf8cba99dc0623aab1b26d5b5f5e2d945846b3592" -dependencies = [ - "bytes 1.0.1", - "futures-core", - "futures-sink", - "log", - "pin-project-lite 0.2.7", - "tokio 1.9.0", + "tokio", ] [[package]] @@ -3243,7 +3244,7 @@ dependencies = [ "rand 0.7.3", "smallvec", "thiserror", - "tokio 0.2.25", + "tokio", "url 2.2.2", ] @@ -3262,7 +3263,7 @@ dependencies = [ "resolv-conf", "smallvec", "thiserror", - "tokio 0.2.25", + "tokio", "trust-dns-proto", ] @@ -3293,6 +3294,15 @@ dependencies = [ "libc", ] +[[package]] +name = "unicase" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +dependencies = [ + "version_check", +] + [[package]] name = "unicode-bidi" version = "0.3.5" diff --git a/Cargo.toml b/Cargo.toml index a0e99bca17..2c978c3fb2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,8 +57,9 @@ num_cpus = "1" protobuf = "2.20.0" rand = "0.8" regex = "1.4" -sentry = { version="0.23.0", features = ["curl"]} -sentry-backtrace = "0.23.0" +# pin to 0.19: https://github.com/getsentry/sentry-rust/issues/277 +sentry = { version = "0.19", features = ["with_curl_transport"] }# pin to 0.19 until on-prem sentry server is updated +sentry-backtrace = "0.19" serde = "1.0" serde_derive = "1.0" serde_json = { version = "1.0", features = ["arbitrary_precision"] } diff --git a/src/main.rs b/src/main.rs index 41c2b30355..3b848aa5cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,8 @@ async fn main() -> Result<(), Box> { // Avoid its default reqwest transport for now due to issues w/ // likely grpcio's boringssl let curl_transport_factory = |options: &sentry::ClientOptions| { - Arc::new(sentry::transports::CurlHttpTransport::new(options)) as Arc + Arc::new(sentry::transports::CurlHttpTransport::new(options)) + as Arc }; let _sentry = sentry::init(sentry::ClientOptions { // Note: set "debug: true," to diagnose sentry issues