Skip to content

fix: clean up key-wallet feature flags after no-std removal#588

Merged
xdustinface merged 2 commits intov0.42-devfrom
fix/key-wallet-feature-cleanup
Mar 27, 2026
Merged

fix: clean up key-wallet feature flags after no-std removal#588
xdustinface merged 2 commits intov0.42-devfrom
fix/key-wallet-feature-cleanup

Conversation

@xdustinface
Copy link
Copy Markdown
Collaborator

  • Remove test-only generate_using_rng and generate_with_seed from public API, move rand from optional dependency to dev-dependency
  • Make bip39/std and secp256k1/std unconditional so key-wallet compiles with --no-default-features

Follow-up to #518.

`generate_using_rng` and `generate_with_seed` were only used in tests
but exposed as public API requiring `rand` at compile time. Move them
to `mod tests` as private helpers and drop `rand` from the crate's
default features. `rand` remains as optional dep for `bip38` and is
added as a dev-dependency for test use.
These were only enabled via default features, so
`--no-default-features` would break compilation because `bip39`
requires its `std` feature for `parse_in` and `to_seed`.
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.37%. Comparing base (2f5494f) to head (e01b0f2).
⚠️ Report is 1 commits behind head on v0.42-dev.

Additional details and impacted files
@@              Coverage Diff              @@
##           v0.42-dev     #588      +/-   ##
=============================================
+ Coverage      67.21%   67.37%   +0.15%     
=============================================
  Files            318      318              
  Lines          67025    67020       -5     
=============================================
+ Hits           45052    45153     +101     
+ Misses         21973    21867     -106     
Flag Coverage Δ
core 75.21% <ø> (ø)
ffi 36.44% <ø> (+1.06%) ⬆️
rpc 19.92% <ø> (ø)
spv 83.70% <ø> (ø)
wallet 66.97% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
key-wallet/src/mnemonic.rs 94.24% <100.00%> (-0.10%) ⬇️

... and 15 files with indirect coverage changes

@xdustinface xdustinface merged commit fcdffa7 into v0.42-dev Mar 27, 2026
36 checks passed
@xdustinface xdustinface deleted the fix/key-wallet-feature-cleanup branch March 27, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants