feat(tvix/eval): Use thiserror for ErrorKind and CatchableErrorKind

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
This commit is contained in:
Ilan Joselevich 2024-09-07 22:29:25 +03:00 committed by clbot
parent 1bdf5c0c11
commit c1e69e260d
6 changed files with 113 additions and 250 deletions

View file

@ -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",

View file

@ -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 = [
@ -4639,6 +4639,10 @@ rec {
name = "tabwriter";
packageId = "tabwriter";
}
{
name = "thiserror";
packageId = "thiserror";
}
{
name = "toml";
packageId = "toml";