diff rust/chg/src/lib.rs @ 44752:d6f706929120

rust-chg: reimplement ChgClientExt as ChgClient wrapper ChgClient is no longer an extension trait because: a. Client object is not consumed and recreated in future-0.3 world, which unblocks writing a simple wrapper struct. b. async fn isn't allowed in trait. Overall, the API should become simpler. Differential Revision: https://phab.mercurial-scm.org/D8446
author Yuya Nishihara <yuya@tcha.org>
date Fri, 10 Apr 2020 23:26:36 +0900
parents 94cace4b80ea
children a347a329e48d
line wrap: on
line diff
--- a/rust/chg/src/lib.rs	Fri Apr 10 22:44:51 2020 +0900
+++ b/rust/chg/src/lib.rs	Fri Apr 10 23:26:36 2020 +0900
@@ -4,12 +4,12 @@
 // GNU General Public License version 2 or any later version.
 
 mod attachio;
-//mod clientext;
+mod clientext;
 //pub mod locator;
 pub mod message;
 pub mod procutil;
 mod runcommand;
 mod uihandler;
 
-//pub use clientext::ChgClientExt;
+pub use clientext::ChgClient;
 pub use uihandler::{ChgUiHandler, SystemHandler};