diff options
author | Ilan Joselevich <personal@ilanjoselevich.com> | 2024-09-07T19·29+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-09-25T18·18+0000 |
commit | c1e69e260dc9025e7c1ff04131f336cd45ca72e9 (patch) | |
tree | a531f875d3dd8d1cde0caca5d96e83b615801807 /web/tvixbolt | |
parent | 1bdf5c0c118020e897d8810df7a4e70c613e3c7f (diff) |
feat(tvix/eval): Use thiserror for ErrorKind and CatchableErrorKind r/8713
thiserror is much more easier to maintain than manually implementing Error and Display. Change-Id: Ibf13e2d8a96fba69c8acb362b7515274a593dfd6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12452 Reviewed-by: flokli <flokli@flokli.de> Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com> Tested-by: BuildkiteCI
Diffstat (limited to 'web/tvixbolt')
-rw-r--r-- | web/tvixbolt/Cargo.lock | 9 | ||||
-rw-r--r-- | web/tvixbolt/Cargo.nix | 12 |
2 files changed, 13 insertions, 8 deletions
diff --git a/web/tvixbolt/Cargo.lock b/web/tvixbolt/Cargo.lock index f67dbb9f9846..301847797107 100644 --- a/web/tvixbolt/Cargo.lock +++ b/web/tvixbolt/Cargo.lock @@ -1387,18 +1387,18 @@ checksum = "f18aa187839b2bdb1ad2fa35ead8c4c2976b64e4363c386d45ac0f7ee85c9233" [[package]] name = "thiserror" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.61" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", @@ -1536,6 +1536,7 @@ dependencies = [ "sha2", "smol_str", "tabwriter", + "thiserror", "toml", "tvix-eval-builtin-macros", "vu128", diff --git a/web/tvixbolt/Cargo.nix b/web/tvixbolt/Cargo.nix index ceec2d582cca..eefa2b28b478 100644 --- a/web/tvixbolt/Cargo.nix +++ b/web/tvixbolt/Cargo.nix @@ -4168,9 +4168,9 @@ rec { }; "thiserror" = rec { crateName = "thiserror"; - version = "1.0.61"; + version = "1.0.63"; edition = "2021"; - sha256 = "028prh962l16cmjivwb1g9xalbpqip0305zhq006mg74dc6whin5"; + sha256 = "092p83mf4p1vkjb2j6h6z96dan4raq2simhirjv12slbndq26d60"; authors = [ "David Tolnay <dtolnay@gmail.com>" ]; @@ -4184,9 +4184,9 @@ rec { }; "thiserror-impl" = rec { crateName = "thiserror-impl"; - version = "1.0.61"; + version = "1.0.63"; edition = "2021"; - sha256 = "0cvm37hp0kbcyk1xac1z0chpbd9pbn2g456iyid6sah0a113ihs6"; + sha256 = "0qd21l2jjrkvnpr5da3l3b58v4wmrkn6aa0h1z5dg6kb8rc8nmd4"; procMacro = true; libName = "thiserror_impl"; authors = [ @@ -4640,6 +4640,10 @@ rec { packageId = "tabwriter"; } { + name = "thiserror"; + packageId = "thiserror"; + } + { name = "toml"; packageId = "toml"; } |