From 6b1e7de93ca86a5e77a00c172c3b57d562886735 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Thu, 5 Oct 2023 15:20:03 -0700 Subject: [PATCH] Update and pin anyhow to 1.0.72 Summary: anyhow-1.0.73 [uses][1] the new `Error::provide` API. This API is available starting in Rust 1.73. This means that if you want backtraces, you need one: - anyhow-1.0.72 & Rust 1.72 - anyhow-1.0.73 & Rust 1.73 Since we're still on 1.72, pin the version to avoid accidentally losing backtraces. There are no real changes between anyhow-1.0.71 and anyhow-1.0.72. But update to anyhow-1.0.72 so that we're right up until the point where we get backtrace support. [1]: https://github.com/dtolnay/anyhow/pull/319 Reviewed By: shayne-fletcher Differential Revision: D49970958 fbshipit-source-id: 1193611e6d16bc840e63b689e932ea3d33562152 --- shed/cached_config/Cargo.toml | 2 +- shed/cachelib_stub/Cargo.toml | 2 +- shed/chrome_trace/Cargo.toml | 2 +- shed/facet/Cargo.toml | 2 +- shed/failure_ext/Cargo.toml | 2 +- shed/fbthrift_ext/socket/Cargo.toml | 2 +- shed/fbthrift_ext/tcp/Cargo.toml | 2 +- shed/futures_01_ext/Cargo.toml | 2 +- shed/futures_ext/Cargo.toml | 2 +- shed/hostname/Cargo.toml | 2 +- shed/memcache_stub/common/Cargo.toml | 2 +- shed/netstring/Cargo.toml | 2 +- shed/ods/Cargo.toml | 2 +- shed/panichandler/Cargo.toml | 2 +- shed/secure_utils/Cargo.toml | 2 +- shed/shared_error/Cargo.toml | 2 +- shed/slog_glog_fmt/Cargo.toml | 2 +- shed/sql/Cargo.toml | 2 +- shed/sql/common/Cargo.toml | 2 +- shed/thrift_compiler/Cargo.toml | 2 +- shed/time_ext/Cargo.toml | 2 +- shed/tokio_shim/Cargo.toml | 2 +- 22 files changed, 22 insertions(+), 22 deletions(-) diff --git a/shed/cached_config/Cargo.toml b/shed/cached_config/Cargo.toml index 195f127e0..3f6c7a6be 100644 --- a/shed/cached_config/Cargo.toml +++ b/shed/cached_config/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } chrono = { version = "0.4", features = ["clock", "serde", "std"], default-features = false } fbinit = { version = "0.1.2", path = "../fbinit" } diff --git a/shed/cachelib_stub/Cargo.toml b/shed/cachelib_stub/Cargo.toml index d07647b5c..e9ce346d9 100644 --- a/shed/cachelib_stub/Cargo.toml +++ b/shed/cachelib_stub/Cargo.toml @@ -12,6 +12,6 @@ license = "MIT OR Apache-2.0" [dependencies] abomonation = { version = "0.7", features = ["smallvec"] } -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } futures_ext = { package = "futures_01_ext", version = "0.1.0", path = "../futures_01_ext" } diff --git a/shed/chrome_trace/Cargo.toml b/shed/chrome_trace/Cargo.toml index 65dccf4d0..abab52745 100644 --- a/shed/chrome_trace/Cargo.toml +++ b/shed/chrome_trace/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } flate2 = { version = "1.0.26", features = ["rust_backend"], default-features = false } libc = "0.2.139" diff --git a/shed/facet/Cargo.toml b/shed/facet/Cargo.toml index ca68b65fb..0692151a3 100644 --- a/shed/facet/Cargo.toml +++ b/shed/facet/Cargo.toml @@ -46,7 +46,7 @@ name = "facet_tuple_struct_test" path = "test/tuple_struct_test.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" async-trait = "0.1.71" facet_proc_macros = { version = "0.1.0", path = "proc_macros" } futures = { version = "0.3.28", features = ["async-await", "compat"] } diff --git a/shed/failure_ext/Cargo.toml b/shed/failure_ext/Cargo.toml index 77d9d0e37..17535bbf0 100644 --- a/shed/failure_ext/Cargo.toml +++ b/shed/failure_ext/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" futures = "0.1.31" slog = { version = "2.7", features = ["max_level_trace", "nested-values"] } diff --git a/shed/fbthrift_ext/socket/Cargo.toml b/shed/fbthrift_ext/socket/Cargo.toml index de99eef63..7df095829 100644 --- a/shed/fbthrift_ext/socket/Cargo.toml +++ b/shed/fbthrift_ext/socket/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0" path = "lib.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" } fbthrift_framed = { version = "0.1.0", path = "../framed" } diff --git a/shed/fbthrift_ext/tcp/Cargo.toml b/shed/fbthrift_ext/tcp/Cargo.toml index ce8543bf7..c4bde7b50 100644 --- a/shed/fbthrift_ext/tcp/Cargo.toml +++ b/shed/fbthrift_ext/tcp/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0" path = "lib.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" } fbthrift_framed = { version = "0.1.0", path = "../framed" } diff --git a/shed/futures_01_ext/Cargo.toml b/shed/futures_01_ext/Cargo.toml index 1a8d63f34..651ed70fe 100644 --- a/shed/futures_01_ext/Cargo.toml +++ b/shed/futures_01_ext/Cargo.toml @@ -16,7 +16,7 @@ futures = "0.1.31" tokio-io = "0.1" [dev-dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" assert_matches = "1.5" cloned = { version = "0.1.0", path = "../cloned" } futures03 = { package = "futures", version = "0.3.28", features = ["async-await", "compat"] } diff --git a/shed/futures_ext/Cargo.toml b/shed/futures_ext/Cargo.toml index c81e90fc2..a4268faed 100644 --- a/shed/futures_ext/Cargo.toml +++ b/shed/futures_ext/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" futures = { version = "0.3.28", features = ["async-await", "compat"] } pin-project = "0.4.30" shared_error = { version = "0.1.0", path = "../shared_error" } diff --git a/shed/hostname/Cargo.toml b/shed/hostname/Cargo.toml index a6ec876e0..10eb73a15 100644 --- a/shed/hostname/Cargo.toml +++ b/shed/hostname/Cargo.toml @@ -11,5 +11,5 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" hostname_orig = { package = "hostname", version = "0.3" } diff --git a/shed/memcache_stub/common/Cargo.toml b/shed/memcache_stub/common/Cargo.toml index 676b0a5b0..918ebf7d7 100644 --- a/shed/memcache_stub/common/Cargo.toml +++ b/shed/memcache_stub/common/Cargo.toml @@ -13,6 +13,6 @@ license = "MIT OR Apache-2.0" path = "lib.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } fbinit = { version = "0.1.2", path = "../../fbinit" } diff --git a/shed/netstring/Cargo.toml b/shed/netstring/Cargo.toml index 31f6da29e..853b2c142 100644 --- a/shed/netstring/Cargo.toml +++ b/shed/netstring/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" bytes = { version = "1.1", features = ["serde"] } thiserror = "1.0.43" tokio-util = { version = "0.7.8", features = ["full"] } diff --git a/shed/ods/Cargo.toml b/shed/ods/Cargo.toml index 356c8a5ba..73f378599 100644 --- a/shed/ods/Cargo.toml +++ b/shed/ods/Cargo.toml @@ -11,5 +11,5 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" fbinit = { version = "0.1.2", path = "../fbinit" } diff --git a/shed/panichandler/Cargo.toml b/shed/panichandler/Cargo.toml index 142efeff0..20b9960e7 100644 --- a/shed/panichandler/Cargo.toml +++ b/shed/panichandler/Cargo.toml @@ -42,7 +42,7 @@ path = "test/testrunner.rs" backtrace = "0.3" [dev-dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" assert_cmd = "2.0" predicates = "1" diff --git a/shed/secure_utils/Cargo.toml b/shed/secure_utils/Cargo.toml index 45a9fe8a7..39bc49fb2 100644 --- a/shed/secure_utils/Cargo.toml +++ b/shed/secure_utils/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" hex = "0.4.3" libc = "0.2.139" openssl = "0.10.55" diff --git a/shed/shared_error/Cargo.toml b/shed/shared_error/Cargo.toml index d9ec0db2e..9804faed7 100644 --- a/shed/shared_error/Cargo.toml +++ b/shed/shared_error/Cargo.toml @@ -11,6 +11,6 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" slog = { version = "2.7", features = ["max_level_trace", "nested-values"] } thiserror = "1.0.43" diff --git a/shed/slog_glog_fmt/Cargo.toml b/shed/slog_glog_fmt/Cargo.toml index a36178186..3b02f5f3a 100644 --- a/shed/slog_glog_fmt/Cargo.toml +++ b/shed/slog_glog_fmt/Cargo.toml @@ -15,7 +15,7 @@ name = "slog_glog_fmt_example" path = "example/main.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" chrono = { version = "0.4", features = ["clock", "serde", "std"], default-features = false } failure_ext = { version = "0.1.0", path = "../failure_ext" } hostname = "0.3" diff --git a/shed/sql/Cargo.toml b/shed/sql/Cargo.toml index 61fa0d5e1..4f6a2569a 100644 --- a/shed/sql/Cargo.toml +++ b/shed/sql/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" cloned = { version = "0.1.0", path = "../cloned" } futures = { version = "0.3.28", features = ["async-await", "compat"] } futures-util = "0.3.7" diff --git a/shed/sql/common/Cargo.toml b/shed/sql/common/Cargo.toml index 7e472ac9b..2163f1b90 100644 --- a/shed/sql/common/Cargo.toml +++ b/shed/sql/common/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0" path = "lib.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" async-trait = "0.1.71" cloned = { version = "0.1.0", path = "../../cloned" } futures = { version = "0.3.28", features = ["async-await", "compat"] } diff --git a/shed/thrift_compiler/Cargo.toml b/shed/thrift_compiler/Cargo.toml index 4eb3a42eb..01054fb33 100644 --- a/shed/thrift_compiler/Cargo.toml +++ b/shed/thrift_compiler/Cargo.toml @@ -15,7 +15,7 @@ name = "compiler" path = "src/main.rs" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" clap = { version = "4.3.5", features = ["derive", "env", "string", "unicode", "wrap_help"] } serde = { version = "1.0.185", features = ["derive", "rc"] } which = "4.2.4" diff --git a/shed/time_ext/Cargo.toml b/shed/time_ext/Cargo.toml index f2a2fcf83..5fcea9c34 100644 --- a/shed/time_ext/Cargo.toml +++ b/shed/time_ext/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed/" license = "MIT OR Apache-2.0" [dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72" thiserror = "1.0.43" [dev-dependencies] diff --git a/shed/tokio_shim/Cargo.toml b/shed/tokio_shim/Cargo.toml index a628acd62..f67293afd 100644 --- a/shed/tokio_shim/Cargo.toml +++ b/shed/tokio_shim/Cargo.toml @@ -17,4 +17,4 @@ tokio_1x = { package = "tokio", version = "1.29.1", features = ["full", "test-ut tokio_1x_stream = { package = "tokio-stream", version = "0.1.14", features = ["fs", "io-util", "net", "signal", "sync", "time"] } [dev-dependencies] -anyhow = "1.0.71" +anyhow = "=1.0.72"