Skip to content

Commit

Permalink
Merge pull request zingolabs#1361 from fluidvanadium/build_no_features
Browse files Browse the repository at this point in the history
removed all errors and warnings in featureless build
  • Loading branch information
fluidvanadium authored Sep 7, 2024
2 parents e427d93 + 1348aaa commit bc62ccd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions zingolib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use getset::{Getters, MutGetters};
use zcash_primitives::{consensus::BlockHeight, memo::Memo};
#[cfg(feature = "sync")]
use zcash_primitives::consensus::BlockHeight;
use zcash_primitives::memo::Memo;

use log::{info, warn};
use rand::rngs::OsRng;
use rand::Rng;

use sapling_crypto::zip32::DiversifiableFullViewingKey;

#[cfg(feature = "sync")]
use zingo_sync::{
primitives::{NullifierMap, SyncState, WalletBlock},
witness::ShardTrees,
};

#[cfg(feature = "sync")]
use std::collections::BTreeMap;
use std::{
cmp,
collections::BTreeMap,
io::{self, Error, ErrorKind, Read, Write},
sync::{atomic::AtomicU64, Arc},
time::SystemTime,
Expand Down
4 changes: 3 additions & 1 deletion zingolib/src/wallet/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use log::{error, info};

use std::{
collections::BTreeMap,
io::{self, Error, ErrorKind, Read, Write},
sync::{atomic::AtomicU64, Arc},
};

#[cfg(feature = "sync")]
use std::collections::BTreeMap;
use tokio::sync::RwLock;
use zcash_primitives::zip339::Mnemonic;

Expand Down

0 comments on commit bc62ccd

Please sign in to comment.