agent: Add anyhow dependency

anyhow provides `anyhow::Error`, a trait object based error type for
easy idiomatic error handling in Rust applications

Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
Julio Montes 2020-08-28 13:51:38 -05:00
parent c192446a59
commit 33759af548
2 changed files with 9 additions and 0 deletions

8
src/agent/Cargo.lock generated
View File

@ -24,6 +24,12 @@ dependencies = [
"memchr",
]
[[package]]
name = "anyhow"
version = "1.0.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b602bfe940d21c130f3895acd65221e8a61270debe89d628b9cb4e3ccb8569b"
[[package]]
name = "arc-swap"
version = "0.4.6"
@ -262,6 +268,7 @@ checksum = "b8b7a7c0c47db5545ed3fef7468ee7bb5b74691498139e4b3f6a20685dc6dd8e"
name = "kata-agent"
version = "0.1.0"
dependencies = [
"anyhow",
"error-chain",
"lazy_static",
"libc",
@ -652,6 +659,7 @@ checksum = "4c691c0e608126e00913e33f0ccf3727d5fc84573623b8d65b2df340b5201783"
name = "rustjail"
version = "0.1.0"
dependencies = [
"anyhow",
"caps",
"dirs",
"error-chain",

View File

@ -32,6 +32,7 @@ slog-scope = "4.1.2"
tempfile = "3.1.0"
prometheus = { version = "0.9.0", features = ["process"] }
procfs = "0.7.9"
anyhow = "1.0.32"
[workspace]
members = [