Skip to content

Commit

Permalink
remove unused backtrace feature
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Aug 13, 2024
1 parent ecd0318 commit 2278be1
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 14 deletions.
4 changes: 4 additions & 0 deletions crates/compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ repository = "https://github.com/initia-labs/movevm"
edition = { workspace = true }
rust-version = { workspace = true }

[features]
default = []
backtraces = []

[dependencies]
anyhow = { workspace = true }
bcs = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion crates/compiler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![cfg_attr(feature = "backtraces", feature(backtrace))]
#![allow(clippy::not_unsafe_ptr_arg_deref, clippy::missing_safety_doc)]

pub mod built_package;
Expand Down
1 change: 0 additions & 1 deletion crates/json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ exclude = [".gitignore"]

[features]
default = []
backtraces = []

[dependencies]
initia-move-types = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/natives/src/crypto/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use move_vm_runtime::native_functions::NativeFunction;
use move_vm_types::{loaded_data::runtime_types::Type, values::Value};

use libsecp256k1::{
recover, util::MESSAGE_SIZE, util::SIGNATURE_SIZE, Message, PublicKey, RecoveryId, Signature,
recover, util::MESSAGE_SIZE, util::SIGNATURE_SIZE, Message, RecoveryId, Signature,
};

use smallvec::{smallvec, SmallVec};
Expand Down Expand Up @@ -102,7 +102,7 @@ pub fn native_recover_public_key(
use rand_core::OsRng;

#[cfg(feature = "testing")]
use libsecp256k1::{sign, SecretKey};
use libsecp256k1::{sign, PublicKey, SecretKey};

#[cfg(feature = "testing")]
pub fn native_test_only_generate_keys(
Expand Down
1 change: 0 additions & 1 deletion crates/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ exclude = [".gitignore"]

[features]
default = []
backtraces = []

[dependencies]
initia-move-types = { workspace = true }
Expand Down
2 changes: 0 additions & 2 deletions crates/vm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//#![cfg_attr(feature = "backtraces", feature(backtrace))]

mod session;

pub use crate::initia_vm::InitiaVM;
Expand Down
2 changes: 0 additions & 2 deletions libcompiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ crate-type = ["staticlib"]

[features]
default = []
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
backtraces = []

[dependencies]
errno = { workspace = true }
Expand Down
4 changes: 1 addition & 3 deletions libmovevm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ crate-type = ["cdylib", "rlib"]

[features]
default = []
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
backtraces = []

[dependencies]
anyhow = { workspace = true }
Expand All @@ -40,7 +38,7 @@ log = { workspace = true, features = [
"release_max_level_warn",
] }

initia-move-vm = { workspace = true, features = ["backtraces"] }
initia-move-vm = { workspace = true }
initia-move-natives = { workspace = true }
initia-move-types = { workspace = true }
initia-move-gas = { workspace = true }
Expand Down
Binary file modified precompile/binaries/minlib/coin.mv
Binary file not shown.
Binary file modified precompile/binaries/minlib/primary_fungible_store.mv
Binary file not shown.
Binary file modified precompile/binaries/stdlib/coin.mv
Binary file not shown.
Binary file modified precompile/binaries/stdlib/primary_fungible_store.mv
Binary file not shown.
2 changes: 0 additions & 2 deletions tools/generate-bcs-go/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ exclude = [".gitignore"]

[features]
default = []
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
backtraces = []

[dependencies]
bcs = { workspace = true }
Expand Down

0 comments on commit 2278be1

Please sign in to comment.