Skip to content

Commit 66584fd

Browse files
committed
Drop anyhow
It doesn't bring a ton of value for our use case, and adds ~50kb to the binary size.
1 parent 4816796 commit 66584fd

File tree

4 files changed

+46
-43
lines changed

4 files changed

+46
-43
lines changed

Cargo.lock

Lines changed: 42 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[workspace]
2+
resolver = "2"
23
members = [
34
"example",
45
"example_with_targets",

shopify_function/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ license = "MIT"
77
description = "Crate to write Shopify Functions in Rust."
88

99
[dependencies]
10-
serde = { version = "1.0.13", features = ["derive"] }
11-
serde_json = "1.0"
12-
anyhow = "1.0.62"
10+
serde = { version = "1.0.197", features = ["derive"] }
11+
serde_json = "1.0.114"
1312
shopify_function_macro = { version = "0.5.0", path = "../shopify_function_macro" }
1413

1514
[dev-dependencies]

shopify_function/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ pub mod prelude {
2727
pub use shopify_function_macro::{generate_types, shopify_function, shopify_function_target};
2828
}
2929

30-
/// Convenience alias for `anyhow::Result`.
31-
pub type Result<T> = anyhow::Result<T>;
30+
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
3231

3332
/// Runs the given function `f` with the invocation payload, returning the
3433
/// deserialized output. This function is provided as a helper when writing

0 commit comments

Comments
 (0)