diff --git a/Cargo.lock b/Cargo.lock index 68295439f..d0759f0d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,21 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "addr2line" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + [[package]] name = "aho-corasick" version = "0.7.18" @@ -43,6 +58,9 @@ name = "anyhow" version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c794e162a5eff65c72ef524dfe393eb923c354e350bb78b9c7383df13f3bc142" +dependencies = [ + "backtrace", +] [[package]] name = "arrayref" @@ -114,6 +132,21 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +[[package]] +name = "backtrace" +version = "0.3.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" +dependencies = [ + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", +] + [[package]] name = "base-x" version = "0.2.11" @@ -861,6 +894,12 @@ dependencies = [ "wasi 0.11.0+wasi-snapshot-preview1", ] +[[package]] +name = "gimli" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" + [[package]] name = "glob" version = "0.3.0" @@ -1173,6 +1212,15 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" +[[package]] +name = "miniz_oxide" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" +dependencies = [ + "adler", +] + [[package]] name = "mio" version = "0.8.4" @@ -1431,6 +1479,15 @@ dependencies = [ "libc", ] +[[package]] +name = "object" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.13.0" @@ -1848,6 +1905,12 @@ dependencies = [ "crossbeam-utils", ] +[[package]] +name = "rustc-demangle" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" + [[package]] name = "rustc-hash" version = "1.1.0" diff --git a/examples/console/Cargo.toml b/examples/console/Cargo.toml index 5970f66c7..462de2ea0 100644 --- a/examples/console/Cargo.toml +++ b/examples/console/Cargo.toml @@ -6,6 +6,6 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } tokio = { version = "1.20.1", features = ["macros", "rt", "net"] } northstar-client = { path = "../../northstar-client" } diff --git a/examples/token-client/Cargo.toml b/examples/token-client/Cargo.toml index 95c6aa8f7..22ff4eb3c 100644 --- a/examples/token-client/Cargo.toml +++ b/examples/token-client/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } base64 = "0.13.0" futures = { version = "0.3.21", default-features = false } northstar-client= { path = "../../northstar-client" } diff --git a/examples/token-server/Cargo.toml b/examples/token-server/Cargo.toml index 9055021fa..4153a7903 100644 --- a/examples/token-server/Cargo.toml +++ b/examples/token-server/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } base64 = "0.13.0" northstar-client = { path = "../../northstar-client" } tokio = { version = "1.20.1", features = ["macros", "rt", "net"] } diff --git a/northstar-client/Cargo.toml b/northstar-client/Cargo.toml index 8eb9fbc65..80afb3608 100644 --- a/northstar-client/Cargo.toml +++ b/northstar-client/Cargo.toml @@ -9,7 +9,7 @@ readme = "../README.md" repository = "https://github.com/esrlabs/northstar" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } futures = "0.3.21" northstar-runtime = { version = "^0.6.0", path = "../northstar-runtime", features = ["api"] } thiserror = "1.0.32" diff --git a/northstar-nstar/Cargo.toml b/northstar-nstar/Cargo.toml index 0c698d997..5c978e4a6 100644 --- a/northstar-nstar/Cargo.toml +++ b/northstar-nstar/Cargo.toml @@ -9,7 +9,7 @@ readme = "../README.md" repository = "https://github.com/esrlabs/northstar" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } base64 = "0.13.0" clap = { version = "3.2.16", features = ["derive"] } clap_complete = "3.2.3" diff --git a/northstar-runtime/Cargo.toml b/northstar-runtime/Cargo.toml index 99c0d27e3..800959b05 100644 --- a/northstar-runtime/Cargo.toml +++ b/northstar-runtime/Cargo.toml @@ -11,7 +11,7 @@ repository = "https://github.com/esrlabs/northstar" rust-version = "1.60.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } async-stream = { version = "0.3.3", optional = true } async-trait = { version = "0.1.57", optional = true } base64 = { version = "0.13.0", optional = true } @@ -96,7 +96,6 @@ npk = [ "zip" ] runtime = [ - "anyhow", "api", "async-stream", "async-trait", @@ -129,7 +128,6 @@ runtime = [ "url", ] seccomp = [ - "anyhow", "bindgen", "caps", "lazy_static", @@ -139,7 +137,7 @@ seccomp = [ ] [dev-dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } memfd = "0.6.1" proptest = "1.0.0" serde_json = "1.0.83" @@ -148,7 +146,7 @@ tokio-test = "0.4.2" toml = "0.5.9" [build-dependencies] -anyhow = { version = "1.0.60", optional = true } +anyhow = { version = "1.0.60", features = ["backtrace"] } bindgen = { version = "0.59.2", default-features = false, features = ["runtime"], optional = true } [package.metadata.docs.rs] diff --git a/northstar-sextant/Cargo.toml b/northstar-sextant/Cargo.toml index a31309ba6..0ec223d05 100644 --- a/northstar-sextant/Cargo.toml +++ b/northstar-sextant/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" repository = "https://github.com/esrlabs/northstar" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } base64 = "0.13.0" clap = { version = "3.2.16", features = ["derive"] } colored = "2.0.0" diff --git a/northstar-stress/Cargo.toml b/northstar-stress/Cargo.toml index 44a4b7916..f2a97e510 100644 --- a/northstar-stress/Cargo.toml +++ b/northstar-stress/Cargo.toml @@ -8,7 +8,7 @@ readme = "../README.md" repository = "https://github.com/esrlabs/northstar" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } clap = { version = "3.2.16", features = ["derive"] } env_logger = "0.9.0" futures = { version = "0.3.21", default-features = false } diff --git a/northstar-tests/Cargo.toml b/northstar-tests/Cargo.toml index d70160eb7..5542b857d 100644 --- a/northstar-tests/Cargo.toml +++ b/northstar-tests/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } env_logger = "0.9.0" futures = { version = "0.3.21", default-features = false } lazy_static = "1.4.0" diff --git a/northstar-tests/test-container/Cargo.toml b/northstar-tests/test-container/Cargo.toml index e3dc8853d..fb9997cdf 100644 --- a/northstar-tests/test-container/Cargo.toml +++ b/northstar-tests/test-container/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } caps = "0.5.4" clap = { version = "3.2.16", features = ["derive"] } nix = { version = "0.24.2", default-features = false, features = ["process", "user"] } diff --git a/northstar/Cargo.toml b/northstar/Cargo.toml index 9a4f5ab0c..0e74d3237 100644 --- a/northstar/Cargo.toml +++ b/northstar/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/esrlabs/northstar" default-run = "northstar" [dependencies] -anyhow = "1.0.60" +anyhow = { version = "1.0.60", features = ["backtrace"] } clap = { version = "3.2.16", features = ["derive"] } log = "0.4.17" nix = { version = "0.24.2", default-features = false, features = ["sched", "mount"] }