From 51ef70922ef5c351fc3764a9b7f41d194a46f249 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Sat, 20 Jan 2018 20:28:25 +0100 Subject: [PATCH] Moved panick_hook to util/panic_hook (#7629) --- Cargo.toml | 2 +- ethkey/cli/Cargo.toml | 2 +- ethstore/cli/Cargo.toml | 2 +- evmbin/Cargo.toml | 2 +- {panic_hook => util/panic_hook}/Cargo.toml | 0 {panic_hook => util/panic_hook}/src/lib.rs | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename {panic_hook => util/panic_hook}/Cargo.toml (100%) rename {panic_hook => util/panic_hook}/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 465bc5830..1e66e2388 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -59,7 +59,7 @@ parity-version = { path = "util/version" } parity-whisper = { path = "whisper" } path = { path = "util/path" } dir = { path = "util/dir" } -panic_hook = { path = "panic_hook" } +panic_hook = { path = "util/panic_hook" } keccak-hash = { path = "util/hash" } migration = { path = "util/migration" } kvdb = { path = "util/kvdb" } diff --git a/ethkey/cli/Cargo.toml b/ethkey/cli/Cargo.toml index 67c784f08..779ca2872 100644 --- a/ethkey/cli/Cargo.toml +++ b/ethkey/cli/Cargo.toml @@ -7,7 +7,7 @@ authors = ["Parity Technologies "] docopt = "0.8" env_logger = "0.4" ethkey = { path = "../" } -panic_hook = { path = "../../panic_hook" } +panic_hook = { path = "../../util/panic_hook" } parity-wordlist="1.2" rustc-hex = "1.0" serde = "1.0" diff --git a/ethstore/cli/Cargo.toml b/ethstore/cli/Cargo.toml index 8c1f884a8..f164f0a67 100644 --- a/ethstore/cli/Cargo.toml +++ b/ethstore/cli/Cargo.toml @@ -12,7 +12,7 @@ serde_derive = "1.0" parking_lot = "0.5" ethstore = { path = "../" } dir = { path = '../../util/dir' } -panic_hook = { path = "../../panic_hook" } +panic_hook = { path = "../../util/panic_hook" } [[bin]] name = "ethstore" diff --git a/evmbin/Cargo.toml b/evmbin/Cargo.toml index 849c06372..9f2c9fa7d 100644 --- a/evmbin/Cargo.toml +++ b/evmbin/Cargo.toml @@ -16,7 +16,7 @@ ethcore-bytes = { path = "../util/bytes" } ethcore-transaction = { path = "../ethcore/transaction" } ethereum-types = "0.1" evm = { path = "../ethcore/evm" } -panic_hook = { path = "../panic_hook" } +panic_hook = { path = "../util/panic_hook" } rustc-hex = "1.0" serde = "1.0" serde_derive = "1.0" diff --git a/panic_hook/Cargo.toml b/util/panic_hook/Cargo.toml similarity index 100% rename from panic_hook/Cargo.toml rename to util/panic_hook/Cargo.toml diff --git a/panic_hook/src/lib.rs b/util/panic_hook/src/lib.rs similarity index 100% rename from panic_hook/src/lib.rs rename to util/panic_hook/src/lib.rs index a1487eb78..1136e9e36 100644 --- a/panic_hook/src/lib.rs +++ b/util/panic_hook/src/lib.rs @@ -18,10 +18,10 @@ extern crate backtrace; -use backtrace::Backtrace; use std::io::{self, Write}; use std::panic::{self, PanicInfo}; use std::thread; +use backtrace::Backtrace; /// Set the panic hook pub fn set() {