Skip to content

Commit

Permalink
linera-faucet-client: remove anyhow (#3365)
Browse files Browse the repository at this point in the history
## Motivation

`anyhow::Error` doesn't implement `std::error::Error`, and therefore
can't be converted to a JavaScript error (`wasm_bindgen::JsError`).

## Proposal

Give `linera-faucet-client` a dedicated error type, with help from
`thiserror` and `thiserror-context`.

## Test Plan

Refactor: should be tested by CI.

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
  • Loading branch information
Twey authored Feb 23, 2025
1 parent 3445481 commit 8066d89
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 211 deletions.
37 changes: 36 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ async-trait = "0.1.77"
async-tungstenite = { version = "0.22", features = ["tokio-runtime"] }
aws-config = "1.1.7"
aws-sdk-dynamodb = "1.60.0"
aws-sdk-s3 = "1.17.0"
aws-smithy-http = "0.60.6"
aws-types = "1.1.7"
aws-smithy-types = "1.1.7"
axum = "0.7.4"
base64 = "0.22.0"
Expand Down Expand Up @@ -98,7 +95,6 @@ hex = "0.4.3"
http = "1.1.0"
humantime = "2.1.0"
glob = "0.3.1"
gloo-storage = "0.3.0"
gloo-utils = "0.2.0"
indexed_db_futures = "0.4.1"
insta = "1.36.1"
Expand Down Expand Up @@ -200,7 +196,6 @@ wasmtime = { version = "25.0.0", default-features = false, features = [
"std",
] }
wasmtimer = "0.2.0"
webassembly-test = "0.1.0"
web-sys = "0.3.69"
js-sys = "0.3.70"
web-time = "1.1.0"
Expand Down Expand Up @@ -228,7 +223,6 @@ linera-views = { version = "0.14.0", path = "./linera-views", default-features =
linera-views-derive = { version = "0.14.0", path = "./linera-views-derive" }
linera-witty = { version = "0.14.0", path = "./linera-witty" }
linera-witty-macros = { version = "0.14.0", path = "./linera-witty-macros" }
linera-witty-test-modules = { version = "0.14.0", path = "./linera-witty/test-modules" }
linera-sdk-derive = { version = "0.14.0", path = "./linera-sdk-derive" }
linera-service = { version = "0.14.0", path = "./linera-service", default-features = false }
linera-service-graphql-client = { version = "0.14.0", path = "./linera-service-graphql-client" }
Expand Down
2 changes: 2 additions & 0 deletions linera-faucet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ edition.workspace = true

[dependencies]
linera-base.workspace = true
serde.workspace = true
serde_with = "3.12.0"

[dependencies.async-graphql]
workspace = true
Expand Down
4 changes: 3 additions & 1 deletion linera-faucet/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ license.workspace = true
edition.workspace = true

[dependencies]
anyhow.workspace = true
linera-base.workspace = true
linera-client.workspace = true
linera-faucet = { version = "0.14.0", path = ".." }
linera-version.workspace = true
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
thiserror-context.workspace = true
Loading

0 comments on commit 8066d89

Please sign in to comment.