Skip to content

Commit

Permalink
remove default feature
Browse files Browse the repository at this point in the history
  • Loading branch information
OBorce committed Dec 11, 2024
1 parent 511bba3 commit 46cf688
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion node-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ tokio.workspace = true
winres = "0.1"

[features]
trezor = ["wallet-controller/trezor", "wallet-types/trezor"]
trezor = ["wallet-controller/trezor", "wallet-types/trezor", "wallet-cli-commands/trezor", "node-gui-backend/trezor"]
2 changes: 1 addition & 1 deletion node-gui/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ rstest.workspace = true
serde_json.workspace = true

[features]
trezor = ["wallet/trezor", "wallet-controller/trezor", "wallet-types/trezor", "wallet-rpc-lib/trezor", "wallet-rpc-client/trezor"]
trezor = ["wallet/trezor", "wallet-controller/trezor", "wallet-types/trezor", "wallet-rpc-lib/trezor", "wallet-rpc-client/trezor", "wallet-cli-commands/trezor"]
2 changes: 0 additions & 2 deletions wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ tempfile.workspace = true
[features]
trezor = ["dep:trezor-client", "wallet-types/trezor"]
trezor-emulator = []

default = ["trezor"]
2 changes: 2 additions & 0 deletions wallet/wallet-rpc-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ pub mod config;
mod rpc;
mod service;

#[cfg(feature = "trezor")]
use rpc::types::HardwareWalletType;
pub use rpc::{
types, ColdWalletRpcClient, ColdWalletRpcDescription, ColdWalletRpcServer, RpcCreds, RpcError,
WalletEventsRpcServer, WalletRpc, WalletRpcClient, WalletRpcDescription, WalletRpcServer,
};
pub use service::{Event, EventStream, TxState, WalletHandle, /* WalletResult, */ WalletService,};
use wallet_controller::{NodeInterface, NodeRpcClient};
#[cfg(feature = "trezor")]
use wallet_types::wallet_type::WalletType;

use std::{fmt::Debug, time::Duration};
Expand Down

0 comments on commit 46cf688

Please sign in to comment.