Skip to content

Commit

Permalink
upgrade anyhow: 1.0.86 -> 1.0.95
Browse files Browse the repository at this point in the history
Summary: Mainly due to the need to have [`Error::from_boxed`](https://docs.rs/anyhow/1.0.95/anyhow/struct.Error.html#method.from_boxed) and stop using less ergonomic alternatives. Thankfully, this API comes in the latest [1.0.95](https://github.com/dtolnay/anyhow/releases/tag/1.0.95)

Reviewed By: dtolnay

Differential Revision: D67775008

fbshipit-source-id: b9c0d3ff169dbb69d4c8b96e378334b37d200fd2
  • Loading branch information
Paul Iatchenii authored and facebook-github-bot committed Jan 3, 2025
1 parent 9e434f0 commit 78d6ad3
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion shed/buffered_weighted/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.86"
anyhow = "1.0.95"
futures-util = "0.3.30"
pin-project = "0.4.30"

Expand Down
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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", features = ["serde"] }
chrono = { version = "0.4", features = ["clock", "serde", "std"], default-features = false }
fbinit = { version = "0.2.0", 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,7 +12,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
abomonation = { version = "0.7", features = ["smallvec"] }
anyhow = "1.0.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", features = ["serde"] }

[lints]
Expand Down
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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", features = ["serde"] }
flate2 = { version = "1.0.33", 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.86"
anyhow = "1.0.95"
async-trait = "0.1.71"
facet_proc_macros = { version = "0.1.0", path = "proc_macros" }
futures = { version = "0.3.30", 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.86"
anyhow = "1.0.95"
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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", 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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", 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 @@ -14,7 +14,7 @@ license = "MIT OR Apache-2.0"
futures = "0.1.31"

[dev-dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
assert_matches = "1.5"
cloned = { version = "0.1.0", path = "../cloned" }
futures03 = { package = "futures", version = "0.3.30", 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.86"
anyhow = "1.0.95"
futures = { version = "0.3.30", features = ["async-await", "compat"] }
maybe-owned = "0.3.4"
pin-project = "0.4.30"
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,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed"
license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
real_hostname = { package = "hostname", version = "0.3" }

[lints]
Expand Down
2 changes: 1 addition & 1 deletion shed/justknobs_stub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name = "justknobs_in_unnitest"
path = "tests/justknobs_in_unittest.rs"

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
arc-swap = "1.5"
cached_config = { version = "0.1.0", path = "../cached_config" }
futures = { version = "0.3.30", features = ["async-await", "compat"] }
Expand Down
2 changes: 1 addition & 1 deletion shed/justknobs_stub/cached_config_thrift_struct/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doctest = false
doc = false

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
codegen_includer_proc_macro = { version = "0.1.0", path = "../../codegen_includer_proc_macro" }
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
futures = { version = "0.3.30", features = ["async-await", "compat"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doctest = false
doc = false

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
async-trait = "0.1.71"
codegen_includer_proc_macro = { version = "0.1.0", path = "../../../codegen_includer_proc_macro" }
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doctest = false
doc = false

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
async-trait = "0.1.71"
codegen_includer_proc_macro = { version = "0.1.0", path = "../../../codegen_includer_proc_macro" }
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ doctest = false
doc = false

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
async-trait = "0.1.71"
codegen_includer_proc_macro = { version = "0.1.0", path = "../../../codegen_includer_proc_macro" }
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
Expand Down
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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", features = ["serde"] }
fbinit = { version = "0.2.0", 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.86"
anyhow = "1.0.95"
bytes = { version = "1.6.0", features = ["serde"] }
thiserror = "2"
tokio-util = { version = "0.7.12", 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,7 +11,7 @@ repository = "https://github.com/facebookexperimental/rust-shed"
license = "MIT OR Apache-2.0"

[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.95"
fbinit = { version = "0.2.0", path = "../fbinit" }

[lints]
Expand Down
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.86"
anyhow = "1.0.95"
assert_cmd = "2.0"
buck-resources = "1"
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.86"
anyhow = "1.0.95"
hex = "0.4.3"
libc = "0.2.139"
openssl = "0.10.63"
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.86"
anyhow = "1.0.95"
slog = { version = "2.7", features = ["max_level_trace", "nested-values"] }
thiserror = "2"
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.86"
anyhow = "1.0.95"
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.86"
anyhow = "1.0.95"
cloned = { version = "0.1.0", path = "../cloned" }
frunk = "0.4.2"
futures = { version = "0.3.30", features = ["async-await", "compat"] }
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.86"
anyhow = "1.0.95"
async-trait = "0.1.71"
cloned = { version = "0.1.0", path = "../../cloned" }
futures = { version = "0.3.30", 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.86"
anyhow = "1.0.95"
clap = { version = "4.5.20", features = ["derive", "env", "string", "unicode", "wrap_help"] }
dunce = "1.0.2"
serde = { version = "1.0.185", features = ["derive", "rc"] }
Expand Down
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.86"
anyhow = "1.0.95"
thiserror = "2"

[dev-dependencies]
Expand Down

0 comments on commit 78d6ad3

Please sign in to comment.