rust/chg/src/lib.rs
author Yuya Nishihara <yuya@tcha.org>
Fri, 10 Apr 2020 22:44:51 +0900
changeset 44851 94cace4b80ea
parent 44850 c794d0da5fb2
child 44852 d6f706929120
permissions -rw-r--r--
rust-chg: reimplement run_command operation as async function The crafted state machine is no longer needed thanks to async/await. The state machine is basically rewritten as follows: - Ready(..) -> return .. - PollAgain(..) -> run .. and await - Err(..) -> return Err(..) Differential Revision: https://phab.mercurial-scm.org/D8445
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     1
// Copyright 2018 Yuya Nishihara <yuya@tcha.org>
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     2
//
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     3
// This software may be used and distributed according to the terms of the
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     4
// GNU General Public License version 2 or any later version.
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
     5
44848
1be605526c34 rust-chg: reimplement attach_io operation as async function
Yuya Nishihara <yuya@tcha.org>
parents: 44846
diff changeset
     6
mod attachio;
44846
8685add122ff rust-chg: exclude futures-dependent modules from build and break things
Yuya Nishihara <yuya@tcha.org>
parents: 44689
diff changeset
     7
//mod clientext;
8685add122ff rust-chg: exclude futures-dependent modules from build and break things
Yuya Nishihara <yuya@tcha.org>
parents: 44689
diff changeset
     8
//pub mod locator;
39972
b1d8acd82d60 rust-chg: add parser for request messages sent to "S" channel
Yuya Nishihara <yuya@tcha.org>
parents: 39971
diff changeset
     9
pub mod message;
39971
a8be2cff613f rust-chg: add wrapper around C function
Yuya Nishihara <yuya@tcha.org>
parents: 39968
diff changeset
    10
pub mod procutil;
44851
94cace4b80ea rust-chg: reimplement run_command operation as async function
Yuya Nishihara <yuya@tcha.org>
parents: 44850
diff changeset
    11
mod runcommand;
44850
c794d0da5fb2 rust-chg: reimplement uihandler by using async-trait and tokio-0.2
Yuya Nishihara <yuya@tcha.org>
parents: 44848
diff changeset
    12
mod uihandler;
39975
a9c5fc436fd5 rust-chg: add callback to handle pager and shell command requests
Yuya Nishihara <yuya@tcha.org>
parents: 39973
diff changeset
    13
44846
8685add122ff rust-chg: exclude futures-dependent modules from build and break things
Yuya Nishihara <yuya@tcha.org>
parents: 44689
diff changeset
    14
//pub use clientext::ChgClientExt;
44850
c794d0da5fb2 rust-chg: reimplement uihandler by using async-trait and tokio-0.2
Yuya Nishihara <yuya@tcha.org>
parents: 44848
diff changeset
    15
pub use uihandler::{ChgUiHandler, SystemHandler};