Skip to content

Rework receive::v2, send::v2 submodule into additive crate::v2 and crate::v1 submodules features #392

Closed
1 of 1 issue completed

Description

@DanGould

I don't really love how the features are laid out inside receive especially. Send is not as big of a deal because the state machine has been flattened. If there were separate modules for separate features I think they'd be easier to reason about from docs.rs

Consider removing the not(feature = v2) feature since we want to discourage its use and one can replicate v1 soverignty by running both a directory and payjoin client on the same machine. Rust features should be additive.


follow ups:
#500

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. changed the title [-]Rework `receive::v2` submodule into `crate::v2` and `crate::v1` submodules feature gated[/-] [+]Rework `receive::v2` submodule into additive `crate::v2` and `crate::v1` submodules features[/+] on Dec 2, 2024
  2. added this to the payjoin-1.0 milestone on Jan 3, 2025
  3. changed the title [-]Rework `receive::v2` submodule into additive `crate::v2` and `crate::v1` submodules features[/-] [+]Rework `receive::v2`, `send::v2` submodule into additive `crate::v2` and `crate::v1` submodules features[/+] on Jan 4, 2025
  4. DanGould commented on Jan 6, 2025

    @DanGould
    MemberAuthor

    @nothingmuch I believe making PjUriBuilder::new into variants rather than a feature-gated set of arguments with the same method, perhaps v1::PjUriBuilder / v2::PjUriBuilder if it can't be entirely contained in the receiver state machine? is the last remaining TODO item to make the v1/v2 features additive after #464. What's the status of that refactor?

  5. nothingmuch commented on Jan 6, 2025

    @nothingmuch
    Contributor

    although i initially started with PjUriBuilder due to #416, i it's way up my "call stack", as it were, feel free to proceed with such changes, at worst it will be a minor disruption for my changes to payjoin-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions