Skip to content

Commit

Permalink
fix: mutually exclusive build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Oct 21, 2024
1 parent bac25d5 commit 49176cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ pub(crate) trait DatabaseUtils: Database {
.map(|o| o.is_some())
}

#[allow(dead_code)]
fn get_raw_tx_or<D>(&self, txid: &Txid, default: D) -> Result<Option<Transaction>, Error>
where
D: FnOnce() -> Result<Option<Transaction>, Error>,
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,17 @@ extern crate serde_json;
#[cfg(feature = "hardware-signer")]
pub extern crate hwi;

#[cfg(all(feature = "reqwest", feature = "ureq"))]
compile_error!("Features reqwest and ureq are mutually exclusive and cannot be enabled together");
#[cfg(all(feature = "use-esplora-async", feature = "use-esplora-blocking"))]
compile_error!("Features use-esplora-async and use-esplora-blocking are mutually exclusive and cannot be enabled together");

#[cfg(all(feature = "async-interface", feature = "electrum"))]
compile_error!(
"Features async-interface and electrum are mutually exclusive and cannot be enabled together"
);

#[cfg(all(feature = "async-interface", feature = "ureq"))]
#[cfg(all(feature = "async-interface", feature = "use-esplora-blocking"))]
compile_error!(
"Features async-interface and ureq are mutually exclusive and cannot be enabled together"
"Features async-interface and use-esplora-blocking are mutually exclusive and cannot be enabled together"
);

#[cfg(all(feature = "async-interface", feature = "compact_filters"))]
Expand Down

0 comments on commit 49176cc

Please sign in to comment.