Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aptos-cli]: update move-tool visibility #14735

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[aptos-cli]: update move-tool visibility
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()`
Rqnsom committed Sep 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit eb8b43297a1aa3735a388a77f59c6ea189d15897
4 changes: 2 additions & 2 deletions crates/aptos/src/move_tool/mod.rs
Original file line number Diff line number Diff line change
@@ -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<OptimizationLevel>) -> Vec<String> {
pub fn experiments_from_opt_level(optlevel: &Option<OptimizationLevel>) -> Vec<String> {
match optlevel {
None | Some(OptimizationLevel::Default) => {
vec![format!("{}=on", Experiment::OPTIMIZE.to_string())]