Mercurial > public > mercurial-scm > hg
view 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 source
// Copyright 2018 Yuya Nishihara <yuya@tcha.org> // // This software may be used and distributed according to the terms of the // GNU General Public License version 2 or any later version. mod attachio; mod clientext; //pub mod locator; pub mod message; pub mod procutil; mod runcommand; mod uihandler; pub use clientext::ChgClient; pub use uihandler::{ChgUiHandler, SystemHandler};