Migrate from failure to thiserror
The failure crate invents its own traits that don't use std::error::Error (because failure predates certain features added to Error); this prevents using ? on an error from failure in a function using Error. The thiserror crate integrates with the standard Error trait instead.
This commit is contained in:
committed by
Dan Gohman
parent
6de45ff8fc
commit
7e725cf880
@@ -16,13 +16,12 @@ edition = "2018"
|
||||
cranelift-codegen-shared = { path = "./shared", version = "0.46.1" }
|
||||
cranelift-entity = { path = "../cranelift-entity", version = "0.46.1" }
|
||||
cranelift-bforest = { path = "../cranelift-bforest", version = "0.46.1" }
|
||||
failure = { version = "0.1.1", default-features = false, features = ["derive"] }
|
||||
failure_derive = { version = "0.1.1", default-features = false }
|
||||
hashbrown = { version = "0.6", optional = true }
|
||||
target-lexicon = "0.8.1"
|
||||
log = { version = "0.4.6", default-features = false }
|
||||
serde = { version = "1.0.94", features = ["derive"], optional = true }
|
||||
smallvec = { version = "0.6.10" }
|
||||
thiserror = "1.0.4"
|
||||
# It is a goal of the cranelift-codegen crate to have minimal external dependencies.
|
||||
# Please don't add any unless they are essential to the task of creating binary
|
||||
# machine code. Integration tests that need external dependencies can be
|
||||
|
||||
Reference in New Issue
Block a user