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 d65b9a2 commit 7d4e805
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion thrift/lib/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0"
publish = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
async-trait = "0.1.71"
base64 = "0.13"
bufsize = "1.0.5"
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/rust/deterministic_hash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "Apache-2.0"
publish = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
fbthrift = { path = ".." }
ring = "0.16.20"
thiserror = "1.0.43"
2 changes: 1 addition & 1 deletion thrift/lib/rust/deterministic_hash/src/tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name = "deterministic_hash_test"
path = "deterministic_hash_test.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
async-trait = "0.1.71"
codegen_includer_proc_macro = { path = "../../../../../../common/rust/shed/codegen_includer_proc_macro" }
const-cstr = "0.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
codegen_includer_proc_macro = { path = "../../../../../../../common/rust/shed/codegen_includer_proc_macro" }
fbthrift = { path = "../../../.." }
futures = { version = "0.3.28", features = ["async-await", "compat"] }
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/rust/src/dep_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "fbthrift_test"
path = "lib.rs"

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
async-trait = "0.1.71"
codegen_includer_proc_macro = { path = "../../../../../common/rust/shed/codegen_includer_proc_macro" }
const-cstr = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/rust/src/dep_tests/cargo_thrift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
async-trait = "0.1.71"
codegen_includer_proc_macro = { path = "../../../../../../common/rust/shed/codegen_includer_proc_macro" }
const-cstr = "0.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
codegen_includer_proc_macro = { path = "../../../../../../../common/rust/shed/codegen_includer_proc_macro" }
fbthrift = { path = "../../../.." }
futures = { version = "0.3.28", features = ["async-await", "compat"] }
Expand Down
2 changes: 1 addition & 1 deletion thrift/lib/rust/src/dep_tests/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0.71"
anyhow = "=1.0.72"
codegen_includer_proc_macro = { path = "../../../../../../common/rust/shed/codegen_includer_proc_macro" }
fbthrift = { path = "../../.." }
futures = { version = "0.3.28", features = ["async-await", "compat"] }
Expand Down

0 comments on commit 7d4e805

Please sign in to comment.