Skip to content

Commit 752fcee

Browse files
authored
Make feature = "v2" ⇒ pub send::V1Context (payjoin#604)
`v2::Sender::extract_v1(..) -> (.. v1::V1Context)`, so this type must have public visibility in order for bindings to implement this `extract_v1` function. I decided not to make the v1 module public only with respect to this V1Context type under exclusive v2 feature configuration because that would introduce far more complexity. View code for exact semantics, since `send::v1::V1Context` is still the path when the `v1` feature is enabled. Fix payjoin#599
2 parents ded33f1 + 9094430 commit 752fcee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

payjoin/src/send/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ pub(crate) mod v1;
3535
#[cfg(feature = "v2")]
3636
#[cfg_attr(docsrs, doc(cfg(feature = "v2")))]
3737
pub mod v2;
38+
#[cfg(all(feature = "v2", not(feature = "v1")))]
39+
pub use v1::V1Context;
3840

3941
#[cfg(feature = "_multiparty")]
4042
pub mod multiparty;

0 commit comments

Comments
 (0)