rust-chg: depend on log and tokio_timer
I'll start porting the daemon management functions from chg of C, which
will be difficult to debug without some logging facility. AFAIK, the log
crate is easy-to-use and widely used.
tokio_timer provides sleep() helper to be used while spawning a server
process.
--- a/rust/chg/Cargo.lock Sun Oct 07 20:55:51 2018 +0900
+++ b/rust/chg/Cargo.lock Sat Oct 06 20:07:11 2018 +0900
@@ -43,9 +43,11 @@
"cc 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
"futures 0.1.24 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.43 (registry+https://github.com/rust-lang/crates.io-index)",
+ "log 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-hglib 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio-process 0.2.2 (git+https://github.com/alexcrichton/tokio-process)",
+ "tokio-timer 0.2.7 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
--- a/rust/chg/Cargo.toml Sun Oct 07 20:55:51 2018 +0900
+++ b/rust/chg/Cargo.toml Sat Oct 06 20:07:11 2018 +0900
@@ -9,10 +9,12 @@
bytes = "0.4"
futures = "0.1"
libc = "0.2"
+log = { version = "0.4", features = ["std"] }
tokio = "0.1"
tokio-hglib = "0.2"
# TODO: "^0.2.3" once released. we need AsRawFd support.
tokio-process = { git = "https://github.com/alexcrichton/tokio-process" }
+tokio-timer = "0.2"
[build-dependencies]
cc = "1.0"