Skip to content

Commit

Permalink
Migrate custom error trait impls to thiserror (#1856)
Browse files Browse the repository at this point in the history
* Migrate to thiserror

* missing bits

* review comment

* Apply suggestions from code review

Co-authored-by: Niklas Adolfsson <[email protected]>

* From<scale_decode::visitor::Error> to remove Into::intos

* scale crates for core::error::Error

* bump msrv 1.81

* make signer crate compile

---------

Co-authored-by: Niklas Adolfsson <[email protected]>
Co-authored-by: James Wilson <[email protected]>
  • Loading branch information
3 people authored Nov 18, 2024
1 parent 1377017 commit 7d10021
Show file tree
Hide file tree
Showing 17 changed files with 329 additions and 477 deletions.
315 changes: 180 additions & 135 deletions Cargo.lock

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resolver = "2"
authors = ["Parity Technologies <[email protected]>"]
edition = "2021"
version = "0.38.0"
rust-version = "1.74.0"
rust-version = "1.81.0"
license = "Apache-2.0 OR GPL-3.0"
repository = "https://github.com/paritytech/subxt"
documentation = "https://docs.rs/subxt"
Expand Down Expand Up @@ -94,16 +94,16 @@ proc-macro2 = "1.0.86"
quote = "1.0.37"
regex = { version = "1.11.0", default-features = false }
scale-info = { version = "2.11.4", default-features = false }
scale-value = { version = "0.17.0", default-features = false }
scale-bits = { version = "0.6.0", default-features = false }
scale-decode = { version = "0.14.0", default-features = false }
scale-encode = { version = "0.8.0", default-features = false }
scale-typegen = "0.9.0"
scale-typegen-description = "0.9.0"
scale-value = { version = "0.18.0", default-features = false }
scale-bits = { version = "0.7.0", default-features = false }
scale-decode = { version = "0.16.0", default-features = false }
scale-encode = { version = "0.10.0", default-features = false }
scale-typegen = "0.10.0"
scale-typegen-description = "0.10.0"
serde = { version = "1.0.210", default-features = false, features = ["derive"] }
serde_json = { version = "1.0.128", default-features = false }
syn = { version = "2.0.77", features = ["full", "extra-traits"] }
thiserror = "1.0.64"
thiserror = { version = "2.0.0", default-features = false }
tokio = { version = "1.40", default-features = false }
tracing = { version = "0.1.40", default-features = false }
tracing-wasm = "0.2.1"
Expand Down
8 changes: 3 additions & 5 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ default = ["std"]
std = [
"codec/std",
"scale-info/std",
"scale-value/std",
"scale-bits/std",
"scale-decode/std",
"scale-encode/std",
"frame-metadata/std",
"subxt-metadata/std",
"hex/std",
Expand All @@ -49,6 +45,8 @@ hex = { workspace = true, default-features = false, features = ["alloc"] }
serde = { workspace = true, default-features = false, features = ["derive"] }
serde_json = { workspace = true, default-features = false, features = ["raw_value", "alloc"] }
hashbrown = { workspace = true }
thiserror = { workspace = true, default-features = false }


# For ss58 encoding AccountId32 to serialize them properly:
base58 = { workspace = true }
Expand Down Expand Up @@ -82,4 +80,4 @@ rustdoc-args = ["--cfg", "docsrs"]
default-features = true

[lints]
workspace = true
workspace = true
Loading

0 comments on commit 7d10021

Please sign in to comment.