Patchwork D8440: rust-chg: exclude futures-dependent modules from build and break things

login
register
mail settings
Submitter phabricator
Date April 16, 2020, 12:30 p.m.
Message ID <differential-rev-PHID-DREV-swzqnkrqz3mwcqu3euzs-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46145/
State Superseded
Headers show

Comments

phabricator - April 16, 2020, 12:30 p.m.
yuja created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8440

AFFECTED FILES
  rust/chg/Cargo.toml
  rust/chg/src/lib.rs

CHANGE DETAILS




To: yuja, #hg-reviewers
Cc: mercurial-devel

Patch

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};
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 @@ 
 license = "GPL-2.0+"
 edition = "2018"
 
+# TODO: enable auto discovery
+autobins = false
+
 [dependencies]
 bytes = "0.4"
 futures = "0.1"