Skip to content

Commit

Permalink
Remove not(feature ="v2") in payjoin crate
Browse files Browse the repository at this point in the history
This allows v1, v2 features to be additive and used side by side.
  • Loading branch information
DanGould committed Jan 8, 2025
1 parent dd0ed07 commit 149f40d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions payjoin/contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
set -e

cargo test --locked --package payjoin --verbose --all-features --lib
cargo test --locked --package payjoin --verbose --features=send,receive --test integration
cargo test --locked --package payjoin --verbose --no-default-features --features=send,receive,_danger-local-https,v2,io --test integration
cargo test --locked --package payjoin --verbose --all-features --test integration
2 changes: 0 additions & 2 deletions payjoin/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ mod integration {
static EXAMPLE_URL: Lazy<Url> =
Lazy::new(|| Url::parse("https://example.com").expect("Invalid Url"));

#[cfg(not(feature = "v2"))]
mod v1 {
use log::debug;
use payjoin::send::v1::SenderBuilder;
Expand Down Expand Up @@ -996,7 +995,6 @@ mod integration {
}
}

#[cfg(not(feature = "v2"))]
mod batching {
use payjoin::send::v1::SenderBuilder;
use payjoin::UriExt;
Expand Down

0 comments on commit 149f40d

Please sign in to comment.