diff --git a/crates/sui-framework-tests/Cargo.toml b/crates/sui-framework-tests/Cargo.toml index 188b0ef65ba61..fa757d3dda98b 100644 --- a/crates/sui-framework-tests/Cargo.toml +++ b/crates/sui-framework-tests/Cargo.toml @@ -19,7 +19,7 @@ datatest-stable.workspace = true prometheus.workspace = true sui-framework.workspace = true -sui-move = { workspace = true, features = ["unit_test"] } +sui-move.workspace = true sui-move-build.workspace = true sui-protocol-config.workspace = true sui-types.workspace = true diff --git a/crates/sui-move/Cargo.toml b/crates/sui-move/Cargo.toml index 17068ff6a903f..4b1afd221eb39 100644 --- a/crates/sui-move/Cargo.toml +++ b/crates/sui-move/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" anyhow.workspace = true clap.workspace = true colored.workspace = true -once_cell = { workspace = true, optional = true } +once_cell.workspace = true serde_json.workspace = true serde_yaml.workspace = true tracing.workspace = true @@ -56,13 +56,3 @@ sui-simulator.workspace = true [package.metadata.cargo-udeps.ignore] normal = ["jemalloc-ctl"] - -[features] -default = [] -build = [] -coverage = [] -disassemble = [] -prove = [] -unit_test = ["build", "dep:once_cell"] -calibrate = [] -all = ["build", "coverage", "disassemble", "prove", "unit_test", "calibrate"] diff --git a/crates/sui-move/src/lib.rs b/crates/sui-move/src/lib.rs index 93b8cf22cc063..74b4bdc5fc4e1 100644 --- a/crates/sui-move/src/lib.rs +++ b/crates/sui-move/src/lib.rs @@ -2,36 +2,27 @@ // SPDX-License-Identifier: Apache-2.0 use clap::Parser; -#[cfg(feature = "unit_test")] use move_cli::base::test::UnitTestResult; use move_package::BuildConfig; use std::path::Path; use sui_move_build::set_sui_flavor; -#[cfg(feature = "build")] pub mod build; -#[cfg(feature = "coverage")] pub mod coverage; -#[cfg(feature = "disassemble")] pub mod disassemble; pub mod manage_package; pub mod migrate; pub mod new; -#[cfg(feature = "unit_test")] pub mod unit_test; #[derive(Parser)] pub enum Command { - #[cfg(feature = "build")] Build(build::Build), - #[cfg(feature = "coverage")] Coverage(coverage::Coverage), - #[cfg(feature = "disassemble")] Disassemble(disassemble::Disassemble), ManagePackage(manage_package::ManagePackage), Migrate(migrate::Migrate), New(new::New), - #[cfg(feature = "unit_test")] Test(unit_test::Test), } #[derive(Parser)] @@ -51,17 +42,13 @@ pub fn execute_move_command( anyhow::bail!(err_msg); } match command { - #[cfg(feature = "build")] Command::Build(c) => c.execute(package_path, build_config), - #[cfg(feature = "coverage")] Command::Coverage(c) => c.execute(package_path, build_config), - #[cfg(feature = "disassemble")] Command::Disassemble(c) => c.execute(package_path, build_config), Command::ManagePackage(c) => c.execute(package_path, build_config), Command::Migrate(c) => c.execute(package_path, build_config), Command::New(c) => c.execute(package_path), - #[cfg(feature = "unit_test")] Command::Test(c) => { let result = c.execute(package_path, build_config)?; diff --git a/crates/sui-source-validation-service/Cargo.toml b/crates/sui-source-validation-service/Cargo.toml index 53dc311ffc3d2..36f1bf325d4f1 100644 --- a/crates/sui-source-validation-service/Cargo.toml +++ b/crates/sui-source-validation-service/Cargo.toml @@ -25,7 +25,7 @@ tracing = "0.1.36" serde = { version = "1.0.144", features = ["derive"] } url = "2.3.1" -sui-move.workspace = true +sui-move.workspace = true sui-move-build.workspace = true sui-sdk.workspace = true sui-source-validation.workspace = true @@ -48,6 +48,6 @@ fs_extra = "1.3.0" reqwest.workspace = true sui.workspace = true -sui-move = { workspace = true, features = ["all"] } +sui-move.workspace = true sui-json-rpc-types.workspace = true test-cluster.workspace = true diff --git a/crates/sui/Cargo.toml b/crates/sui/Cargo.toml index 9078ceac6b6dd..0d5d1dff035f6 100644 --- a/crates/sui/Cargo.toml +++ b/crates/sui/Cargo.toml @@ -67,7 +67,7 @@ sui-json-rpc-types.workspace = true sui-sdk.workspace = true sui-keys.workspace = true sui-source-validation.workspace = true -sui-move = { workspace = true, features = ["all"] } +sui-move.workspace = true sui-move-build.workspace = true sui-package-management.workspace = true sui-protocol-config.workspace = true