feat: Release v0.5.0 - Ecosystem feature flags#41
Merged
Conversation
- 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
Codecov Report❌ Patch coverage is
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cargo,npm,pypi,go) allowing users to build deps-lsp with only the ecosystems they need. All features are enabled by default.Changes
Feature Flags
Test Organization
Tests are now grouped into feature-gated modules:
#[cfg(feature = "cargo")] mod cargo_tests#[cfg(feature = "npm")] mod npm_tests#[cfg(feature = "pypi")] mod pypi_tests#[cfg(feature = "go")] mod go_testsFiles Changed
crates/deps-lsp/Cargo.toml- Feature flag definitionscrates/deps-lsp/src/lib.rs- Conditional re-exportscrates/deps-lsp/src/document/state.rs- Feature-gated types and testscrates/deps-lsp/src/document/lifecycle.rs- Feature-gated testscrates/deps-lsp/src/handlers/*.rs- Feature-gated testsTest plan
--features "cargo")cargo clippyandcargo fmt --check