Skip to content

Commit

Permalink
Update and pin anyhow to 1.0.72
Browse files Browse the repository at this point in the history
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]: dtolnay/anyhow#319

Reviewed By: shayne-fletcher

Differential Revision: D49970958

fbshipit-source-id: 1193611e6d16bc840e63b689e932ea3d33562152
  • Loading branch information
zertosh authored and facebook-github-bot committed Oct 5, 2023
1 parent 6c2dd49 commit 6b1e7de
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion shed/cached_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion shed/cachelib_stub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion shed/chrome_trace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shed/facet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion shed/failure_ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

Expand Down
2 changes: 1 addition & 1 deletion shed/fbthrift_ext/socket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion shed/fbthrift_ext/tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion shed/futures_01_ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion shed/futures_ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion shed/hostname/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion shed/memcache_stub/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion shed/netstring/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion shed/ods/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion shed/panichandler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion shed/secure_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shed/shared_error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion shed/slog_glog_fmt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shed/sql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shed/sql/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion shed/thrift_compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion shed/time_ext/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion shed/tokio_shim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6b1e7de

Please sign in to comment.