From 1d0cf10837aaea33710769b5eaf6a499077bf11f Mon Sep 17 00:00:00 2001 From: Karlo <88337245+Rqnsom@users.noreply.github.com> Date: Wed, 25 Sep 2024 23:41:07 +0200 Subject: [PATCH] [aptos-cli]: update move-tool visibility (#14735) Ensure that the following functions are publicly visible so they can be used from the `move-mutation-test` tool. - `aptos::move_tool::aptos_debug_natives::aptos_debug_natives()` - `aptos::move_tool::experiments_from_opt_level()` --- crates/aptos/src/move_tool/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/aptos/src/move_tool/mod.rs b/crates/aptos/src/move_tool/mod.rs index c0c921ae316e1..1f7ca3cfaa6b2 100644 --- a/crates/aptos/src/move_tool/mod.rs +++ b/crates/aptos/src/move_tool/mod.rs @@ -78,7 +78,7 @@ pub use stored_package::*; use tokio::task; use url::Url; -mod aptos_debug_natives; +pub mod aptos_debug_natives; mod bytecode; pub mod coverage; mod fmt; @@ -848,7 +848,7 @@ impl FromStr for IncludedArtifacts { } } -pub(crate) fn experiments_from_opt_level(optlevel: &Option) -> Vec { +pub fn experiments_from_opt_level(optlevel: &Option) -> Vec { match optlevel { None | Some(OptimizationLevel::Default) => { vec![format!("{}=on", Experiment::OPTIMIZE.to_string())]