diff rust/chg/src/lib.rs @ 44672:bb936e25a84a

rust-chg: spawn server process if not running This is the minimal reimplementation of gethgcmd(), execcmdserver(), retryconnectcmdserver(), and connectcmdserver() in chg.c. No config validation is implemented yet. And some Py3 workarounds would be missing as this is the code I wrote in 2018. Differential Revision: https://phab.mercurial-scm.org/D8360
author Yuya Nishihara <yuya@tcha.org>
date Sat, 06 Oct 2018 20:10:44 +0900
parents 74da9d999cd7
children 1f5ab1a9363d
line wrap: on
line diff
--- a/rust/chg/src/lib.rs	Tue Mar 31 23:13:13 2020 +0900
+++ b/rust/chg/src/lib.rs	Sat Oct 06 20:10:44 2018 +0900
@@ -7,9 +7,12 @@
 #[macro_use]
 extern crate futures;
 extern crate libc;
+#[macro_use]
+extern crate log;
 extern crate tokio;
 extern crate tokio_hglib;
 extern crate tokio_process;
+extern crate tokio_timer;
 
 mod attachio;
 mod clientext;