Skip to content

Commit 46cf688

Browse files
committed
remove default feature
1 parent 511bba3 commit 46cf688

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

node-gui/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ tokio.workspace = true
4040
winres = "0.1"
4141

4242
[features]
43-
trezor = ["wallet-controller/trezor", "wallet-types/trezor"]
43+
trezor = ["wallet-controller/trezor", "wallet-types/trezor", "wallet-cli-commands/trezor", "node-gui-backend/trezor"]

node-gui/backend/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ rstest.workspace = true
4343
serde_json.workspace = true
4444

4545
[features]
46-
trezor = ["wallet/trezor", "wallet-controller/trezor", "wallet-types/trezor", "wallet-rpc-lib/trezor", "wallet-rpc-client/trezor"]
46+
trezor = ["wallet/trezor", "wallet-controller/trezor", "wallet-types/trezor", "wallet-rpc-lib/trezor", "wallet-rpc-client/trezor", "wallet-cli-commands/trezor"]

wallet/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,3 @@ tempfile.workspace = true
4545
[features]
4646
trezor = ["dep:trezor-client", "wallet-types/trezor"]
4747
trezor-emulator = []
48-
49-
default = ["trezor"]

wallet/wallet-rpc-lib/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ pub mod config;
1818
mod rpc;
1919
mod service;
2020

21+
#[cfg(feature = "trezor")]
2122
use rpc::types::HardwareWalletType;
2223
pub use rpc::{
2324
types, ColdWalletRpcClient, ColdWalletRpcDescription, ColdWalletRpcServer, RpcCreds, RpcError,
2425
WalletEventsRpcServer, WalletRpc, WalletRpcClient, WalletRpcDescription, WalletRpcServer,
2526
};
2627
pub use service::{Event, EventStream, TxState, WalletHandle, /* WalletResult, */ WalletService,};
2728
use wallet_controller::{NodeInterface, NodeRpcClient};
29+
#[cfg(feature = "trezor")]
2830
use wallet_types::wallet_type::WalletType;
2931

3032
use std::{fmt::Debug, time::Duration};

0 commit comments

Comments
 (0)