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

login
register
mail settings
Submitter phabricator
Date April 23, 2020, 6:02 p.m.
Message ID <59482fbcc5cd160ceb09349346ac102a@localhost.localdomain>
Download mbox | patch
Permalink /patch/46211/
State Not Applicable
Headers show

Comments

phabricator - April 23, 2020, 6:02 p.m.
Herald added a subscriber: mercurial-patches.
Closed by commit rHG8685add122ff: rust-chg: exclude futures-dependent modules from build and break things (authored by yuja).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8440?vs=21117&id=21184

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8440/new/

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, Alphare
Cc: mercurial-patches, 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"