diff rust/chg/src/lib.rs @ 44753:a347a329e48d

rust-chg: reimplement locator by using async/await and tokio-0.2 connect_spawned() is rewritten from scratch by using std::process. Before, it would select completion of either connection or server process. New code could be implemented as such, but it's much simpler to occasionally run try_wait() to detect server death. Differential Revision: https://phab.mercurial-scm.org/D8447
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Apr 2020 00:47:32 +0900
parents d6f706929120
children
line wrap: on
line diff
--- a/rust/chg/src/lib.rs	Fri Apr 10 23:26:36 2020 +0900
+++ b/rust/chg/src/lib.rs	Sat Apr 11 00:47:32 2020 +0900
@@ -5,7 +5,7 @@
 
 mod attachio;
 mod clientext;
-//pub mod locator;
+pub mod locator;
 pub mod message;
 pub mod procutil;
 mod runcommand;