Skip to content

Conversation

@evilrobot-01
Copy link
Contributor

@evilrobot-01 evilrobot-01 commented Apr 8, 2025

Eliminates unnecessary dependencies when building without default features. The number of dependencies when building with the contract feature only has been halved from ~1k to 500k. A handful were removed more generally by using default-features = false.

Also updates CI to ensure that builds with --no-default-features are successful and remain so. Whilst the tool is primarily aimed towards contract and parachain development, allowing successful builds with no default features allows the introduction and testing of additional experimental features which are not specific to these two developer journeys.

[sc-3569]

@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 44.11765% with 19 lines in your changes missing coverage. Please review.

Project coverage is 78.78%. Comparing base (6862c4a) to head (8cbb8af).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/commands/mod.rs 54.54% 10 Missing ⚠️
crates/pop-cli/src/commands/test/mod.rs 14.28% 6 Missing ⚠️
crates/pop-cli/src/commands/build/mod.rs 40.00% 3 Missing ⚠️
@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
- Coverage   78.89%   78.78%   -0.11%     
==========================================
  Files          99       99              
  Lines       23146    23186      +40     
  Branches    23146    23186      +40     
==========================================
+ Hits        18260    18268       +8     
- Misses       2687     2719      +32     
  Partials     2199     2199              
Files with missing lines Coverage Δ
crates/pop-cli/src/cli.rs 66.58% <ø> (ø)
crates/pop-cli/src/commands/bench/block.rs 73.19% <ø> (ø)
crates/pop-cli/src/commands/bench/machine.rs 73.00% <ø> (ø)
crates/pop-cli/src/commands/bench/overhead.rs 85.39% <ø> (ø)
crates/pop-cli/src/commands/bench/storage.rs 69.17% <ø> (ø)
crates/pop-cli/src/commands/build/runtime.rs 70.24% <ø> (ø)
crates/pop-cli/src/commands/test/execute_block.rs 89.23% <ø> (ø)
crates/pop-cli/src/commands/test/fast_forward.rs 88.30% <ø> (ø)
...es/pop-cli/src/commands/test/on_runtime_upgrade.rs 90.11% <ø> (ø)
crates/pop-cli/src/common/binary.rs 78.21% <ø> (ø)
... and 12 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@evilrobot-01 evilrobot-01 marked this pull request as ready for review April 9, 2025 06:39
@evilrobot-01 evilrobot-01 requested a review from AlexD10S April 9, 2025 06:39
Copy link
Collaborator

@AlexD10S AlexD10S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!
Everything looks good to me, I just left a couple of minor comments suggesting the addition of documentation comments for public modules. Good to go after that!

@evilrobot-01
Copy link
Contributor Author

Docs require some love. As this PR is only about resolving the dependencies, my suggestion is to tackle the docs separately and holistically in a single PR.

@AlexD10S AlexD10S merged commit f510caa into main Apr 9, 2025
40 of 44 checks passed
@AlexD10S AlexD10S deleted the frank/build-deps-eliminate-unnecessary-dependencies branch April 9, 2025 08:58
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.

3 participants