Skip to content

Commit 2278be1

Browse files
committed
remove unused backtrace feature
1 parent ecd0318 commit 2278be1

File tree

13 files changed

+7
-14
lines changed

13 files changed

+7
-14
lines changed

crates/compiler/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ repository = "https://github.com/initia-labs/movevm"
77
edition = { workspace = true }
88
rust-version = { workspace = true }
99

10+
[features]
11+
default = []
12+
backtraces = []
13+
1014
[dependencies]
1115
anyhow = { workspace = true }
1216
bcs = { workspace = true }

crates/compiler/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![cfg_attr(feature = "backtraces", feature(backtrace))]
21
#![allow(clippy::not_unsafe_ptr_arg_deref, clippy::missing_safety_doc)]
32

43
pub mod built_package;

crates/json/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exclude = [".gitignore"]
1111

1212
[features]
1313
default = []
14-
backtraces = []
1514

1615
[dependencies]
1716
initia-move-types = { workspace = true }

crates/natives/src/crypto/secp256k1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use move_vm_runtime::native_functions::NativeFunction;
44
use move_vm_types::{loaded_data::runtime_types::Type, values::Value};
55

66
use libsecp256k1::{
7-
recover, util::MESSAGE_SIZE, util::SIGNATURE_SIZE, Message, PublicKey, RecoveryId, Signature,
7+
recover, util::MESSAGE_SIZE, util::SIGNATURE_SIZE, Message, RecoveryId, Signature,
88
};
99

1010
use smallvec::{smallvec, SmallVec};
@@ -102,7 +102,7 @@ pub fn native_recover_public_key(
102102
use rand_core::OsRng;
103103

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

107107
#[cfg(feature = "testing")]
108108
pub fn native_test_only_generate_keys(

crates/vm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exclude = [".gitignore"]
1111

1212
[features]
1313
default = []
14-
backtraces = []
1514

1615
[dependencies]
1716
initia-move-types = { workspace = true }

crates/vm/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//#![cfg_attr(feature = "backtraces", feature(backtrace))]
2-
31
mod session;
42

53
pub use crate::initia_vm::InitiaVM;

libcompiler/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ crate-type = ["staticlib"]
2222

2323
[features]
2424
default = []
25-
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
26-
backtraces = []
2725

2826
[dependencies]
2927
errno = { workspace = true }

libmovevm/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ crate-type = ["cdylib", "rlib"]
2222

2323
[features]
2424
default = []
25-
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
26-
backtraces = []
2725

2826
[dependencies]
2927
anyhow = { workspace = true }
@@ -40,7 +38,7 @@ log = { workspace = true, features = [
4038
"release_max_level_warn",
4139
] }
4240

43-
initia-move-vm = { workspace = true, features = ["backtraces"] }
41+
initia-move-vm = { workspace = true }
4442
initia-move-natives = { workspace = true }
4543
initia-move-types = { workspace = true }
4644
initia-move-gas = { workspace = true }

precompile/binaries/minlib/coin.mv

-61 Bytes
Binary file not shown.
Binary file not shown.

precompile/binaries/stdlib/coin.mv

-61 Bytes
Binary file not shown.
Binary file not shown.

tools/generate-bcs-go/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ exclude = [".gitignore"]
1212

1313
[features]
1414
default = []
15-
# This feature requires Rust nightly because it depends on the unstable backtrace feature.
16-
backtraces = []
1715

1816
[dependencies]
1917
bcs = { workspace = true }

0 commit comments

Comments
 (0)