Skip to content

Remove prelude modules and wildcard imports#28

Merged
Sajjon merged 1 commit intomainfrom
remove_umbrella_imports
Feb 18, 2026
Merged

Remove prelude modules and wildcard imports#28
Sajjon merged 1 commit intomainfrom
remove_umbrella_imports

Conversation

@Sajjon
Copy link
Copy Markdown
Owner

@Sajjon Sajjon commented Feb 18, 2026

Remove prelude modules and wildcard "imports" in favour of explicit use statements.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR systematically removes prelude modules across all crates in the workspace and replaces wildcard imports with explicit imports, improving code clarity and making dependencies more transparent.

Changes:

  • Removed prelude modules from foundation, render-pdf, render-typst, core-invoice, and cli crates
  • Replaced all use crate::prelude::* imports with explicit named imports
  • Updated documentation examples to use use klirr_core_invoice::* instead of use klirr_core_invoice::prelude::*

Reviewed changes

Copilot reviewed 144 out of 145 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/foundation/src/lib.rs Removed prelude module; exports specific items from models and traits
crates/foundation/src/traits/mod.rs Changed from wildcard re-exports to explicit named exports
crates/foundation/src/models/mod.rs Changed from wildcard re-exports to explicit named exports
crates/render-pdf/src/lib.rs Removed prelude module; re-exports specific items from klirr_foundation and internal modules
crates/render-typst/src/lib.rs Removed prelude module; simplified to direct re-export from render module
crates/core-invoice/src/lib.rs Removed prelude module; re-exports all items from logic and models, plus std types
crates/cli/src/main.rs Removed prelude module usage; explicit imports from all dependencies
crates/cli/Cargo.toml Added explicit dependencies on getset and indexmap that were previously transitively available
Multiple model files Replaced use crate::prelude::* with explicit imports of needed types and traits
Multiple test modules Added explicit imports for test dependencies like HasSample, FromStr, dec!

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.50%. Comparing base (3b0708f) to head (cabbe7f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   94.50%   94.50%           
=======================================
  Files         100      100           
  Lines        2202     2202           
=======================================
  Hits         2081     2081           
  Misses        121      121           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sajjon Sajjon merged commit 08c96fe into main Feb 18, 2026
13 checks passed
@Sajjon Sajjon deleted the remove_umbrella_imports branch February 18, 2026 12:16
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