changeset 44846:8685add122ff

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
author Yuya Nishihara <yuya@tcha.org>
date Fri, 10 Apr 2020 21:44:46 +0900
parents c6d31e659a28
children e9e44e61042b
files rust/chg/Cargo.toml rust/chg/src/lib.rs
diffstat 2 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/rust/chg/Cargo.toml	Mon Apr 20 14:37:10 2020 -0700
+++ b/rust/chg/Cargo.toml	Fri Apr 10 21:44:46 2020 +0900
@@ -6,6 +6,9 @@
 license = "GPL-2.0+"
 edition = "2018"
 
+# TODO: enable auto discovery
+autobins = false
+
 [dependencies]
 bytes = "0.4"
 futures = "0.1"
--- a/rust/chg/src/lib.rs	Mon Apr 20 14:37:10 2020 -0700
+++ b/rust/chg/src/lib.rs	Fri Apr 10 21:44:46 2020 +0900
@@ -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};