# HG changeset patch # User Yuya Nishihara # Date 2020-04-10 12:44:46 # Node ID 8685add122ffa221358f0ceec238e2b78c74781b # Parent c6d31e659a28eac8193229a385c237489494a10d rust-chg: exclude futures-dependent modules from build and break things It's impractical to upgrade the codebase incrementally since futures 0.1 and 0.3 APIs are fundamentally different. So this patch temporarily excludes futures-dependent modules from the build. These modules will be upgraded and re-enabled one by one. Differential Revision: https://phab.mercurial-scm.org/D8440 diff --git a/rust/chg/Cargo.toml b/rust/chg/Cargo.toml --- a/rust/chg/Cargo.toml +++ b/rust/chg/Cargo.toml @@ -6,6 +6,9 @@ description = "Client for Mercurial comm license = "GPL-2.0+" edition = "2018" +# TODO: enable auto discovery +autobins = false + [dependencies] bytes = "0.4" futures = "0.1" diff --git a/rust/chg/src/lib.rs b/rust/chg/src/lib.rs --- a/rust/chg/src/lib.rs +++ b/rust/chg/src/lib.rs @@ -3,13 +3,13 @@ // 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; +//mod attachio; +//mod clientext; +//pub mod locator; pub mod message; pub mod procutil; -mod runcommand; -mod uihandler; +//mod runcommand; +//mod uihandler; -pub use clientext::ChgClientExt; -pub use uihandler::{ChgUiHandler, SystemHandler}; +//pub use clientext::ChgClientExt; +//pub use uihandler::{ChgUiHandler, SystemHandler};