Cleaning up dependencies (#125)

* cargo update
* Update to latest ctrlc crate
* Update vergen
* Update to latest pretty_assertions
* Update log
* Update parking_lot
* Update hex-rustc
This commit is contained in:
Benjamin Kampmann
2019-02-08 18:25:15 +01:00
committed by GitHub
parent 36034e79a2
commit 9fb22ce28d
16 changed files with 122 additions and 117 deletions
+3 -8
View File
@@ -31,11 +31,6 @@ use futures::{future, Future};
use std::cell::RefCell;
mod vergen {
#![allow(unused)]
include!(concat!(env!("OUT_DIR"), "/version.rs"));
}
// the regular polkadot worker simply does nothing until ctrl-c
struct Worker;
impl cli::IntoExit for Worker {
@@ -45,11 +40,11 @@ impl cli::IntoExit for Worker {
let (exit_send, exit) = oneshot::channel();
let exit_send_cell = RefCell::new(Some(exit_send));
ctrlc::CtrlC::set_handler(move || {
ctrlc::set_handler(move || {
if let Some(exit_send) = exit_send_cell.try_borrow_mut().expect("signal handler not reentrant; qed").take() {
exit_send.send(()).expect("Error sending exit notification");
}
});
}).expect("Error setting Ctrl-C handler");
exit.map_err(drop)
}
@@ -68,7 +63,7 @@ quick_main!(run);
fn run() -> cli::error::Result<()> {
let version = VersionInfo {
name: "Parity Polkadot",
commit: vergen::short_sha(),
commit: env!("VERGEN_SHA_SHORT"),
version: env!("CARGO_PKG_VERSION"),
executable_name: "polkadot",
author: "Parity Team <admin@parity.io>",