Commit 0275928
committed
Allow building payjoin crate with no default features
Previously, the payjoin crate would fail to build if none of the
features 'v1', 'v2', or 'directory' were enabled, due to an explicit
compile_error! macro. This prevented the use of tools like
cargo-all-features for comprehensive CI and dead code detection.
This change removes the compile_error! and replaces it with a
doc-only module that is included when no features are enabled,
making the crate a no-op in that configuration. The documentation
and Cargo.toml are updated to clarify that at least one of the
main features must be enabled for any functionality.
This enables better CI, linting, and future modularity, while
preserving clear guidance for users and contributors.
Closes #9211 parent 0aa1509 commit 0275928
3 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
31 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments