view rust/chg/src/lib.rs @ 40120:89742f1fa6cb

rust-chg: install signal handlers to forward signals to server I use sync::Once as a synchronization primitive because it's quite easy to use, and is good enough to prevent data race in these C functions.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 25 Sep 2018 20:55:03 +0900
parents 74da9d999cd7
children bb936e25a84a
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.

extern crate bytes;
#[macro_use]
extern crate futures;
extern crate libc;
extern crate tokio;
extern crate tokio_hglib;
extern crate tokio_process;

mod attachio;
mod clientext;
pub mod locator;
pub mod message;
pub mod procutil;
mod runcommand;
mod uihandler;

pub use clientext::ChgClientExt;
pub use uihandler::{ChgUiHandler, SystemHandler};