Skip to content

feat: Release v0.5.0 - Ecosystem feature flags#41

Merged
bug-ops merged 1 commit intomainfrom
release/v0.5.0
Dec 26, 2025
Merged

feat: Release v0.5.0 - Ecosystem feature flags#41
bug-ops merged 1 commit intomainfrom
release/v0.5.0

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Dec 26, 2025

Summary

  • Ecosystem feature flags: Added optional feature flags (cargo, npm, pypi, go) allowing users to build deps-lsp with only the ecosystems they need. All features are enabled by default.
  • Test refactoring: Reorganized ecosystem-specific tests into feature-gated modules for cleaner organization and faster builds when compiling with subset of features.
  • Version bump: Updated to v0.5.0

Changes

Feature Flags

[features]
default = ["cargo", "npm", "pypi", "go"]
cargo = ["dep:deps-cargo"]
npm = ["dep:deps-npm"]
pypi = ["dep:deps-pypi"]
go = ["dep:deps-go"]

Test Organization

Tests are now grouped into feature-gated modules:

  • Generic tests at module root (always compiled)
  • #[cfg(feature = "cargo")] mod cargo_tests
  • #[cfg(feature = "npm")] mod npm_tests
  • #[cfg(feature = "pypi")] mod pypi_tests
  • #[cfg(feature = "go")] mod go_tests

Files Changed

  • crates/deps-lsp/Cargo.toml - Feature flag definitions
  • crates/deps-lsp/src/lib.rs - Conditional re-exports
  • crates/deps-lsp/src/document/state.rs - Feature-gated types and tests
  • crates/deps-lsp/src/document/lifecycle.rs - Feature-gated tests
  • crates/deps-lsp/src/handlers/*.rs - Feature-gated tests

Test plan

  • All 737 tests pass with all features enabled
  • Build succeeds with individual features (--features "cargo")
  • Code passes cargo clippy and cargo fmt --check

- Add feature flags for cargo, npm, pypi, go (all enabled by default)
- Make ecosystem crate dependencies optional based on feature flags
- Add conditional compilation for ecosystem-specific code
- Refactor tests into feature-gated modules for better organization:
  - Generic tests at module root
  - Ecosystem-specific tests in dedicated modules
- Update version to 0.5.0
- Update CHANGELOG and documentation
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes lsp Language Server Protocol needs-review Needs review size: XXL >1000 lines changed labels Dec 26, 2025
@codecov-commenter
Copy link

codecov-commenter commented Dec 26, 2025

Codecov Report

❌ Patch coverage is 98.27586% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/deps-lsp/src/document/state.rs 97.12% 12 Missing ⚠️
crates/deps-lsp/src/document/lifecycle.rs 98.00% 4 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   85.72%   85.65%   -0.08%     
==========================================
  Files          54       54              
  Lines       14684    14654      -30     
==========================================
- Hits        12588    12552      -36     
- Misses       2096     2102       +6     
Flag Coverage Δ
deps-cargo 79.18% <ø> (ø)
deps-core 90.93% <ø> (ø)
deps-go 85.65% <98.27%> (-0.08%) ⬇️
deps-lsp 79.36% <98.27%> (-0.40%) ⬇️
deps-npm 89.43% <ø> (ø)
deps-pypi 86.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
crates/deps-lsp/src/handlers/code_actions.rs 98.07% <100.00%> (ø)
crates/deps-lsp/src/handlers/diagnostics.rs 96.03% <100.00%> (ø)
crates/deps-lsp/src/handlers/hover.rs 100.00% <100.00%> (ø)
crates/deps-lsp/src/handlers/inlay_hints.rs 98.23% <100.00%> (ø)
crates/deps-lsp/src/document/lifecycle.rs 53.72% <98.00%> (+4.46%) ⬆️
crates/deps-lsp/src/document/state.rs 94.70% <97.12%> (-1.23%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bug-ops bug-ops merged commit 4055154 into main Dec 26, 2025
20 checks passed
@bug-ops bug-ops deleted the release/v0.5.0 branch December 26, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lsp Language Server Protocol needs-review Needs review rust Rust code changes size: XXL >1000 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants