Skip to content

Add WSL version capabilities#62

Merged
mveril merged 13 commits into
developfrom
feature/version-capabilities
May 30, 2026
Merged

Add WSL version capabilities#62
mveril merged 13 commits into
developfrom
feature/version-capabilities

Conversation

@mveril
Copy link
Copy Markdown
Owner

@mveril mveril commented May 12, 2026

Summary

  • Adds explicit WSL version capability modeling so plugin code can reason about features by capability instead of raw version checks.
  • Exposes capability support helpers on WSLVersion and lets the proc macro declare one or more required capabilities.

Changes

  • Added WSLVersion and WSLVersionCapability support APIs, including WSLVersion::supports and WSLVersion::capabilities.
  • Updated plugin registration utilities to select the highest required capability version when creating plugins.
  • Extended #[wsl_plugin_v1(...)] parsing so required capabilities can be combined with |.
  • Added macro coverage for capability requirements.

Components Touched

  • Public API
  • Proc macro
  • Runtime internals
  • Unsafe code
  • Bug fix
  • Documentation
  • Examples
  • CI / release workflow
  • AGENTS.md instructions

Validation

  • cargo test --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features
  • cargo fmt --all -- --check
  • Relevant manual testing completed

WSL / Windows Notes

  • This affects plugin creation metadata by deriving the required WSL version from declared capabilities.
  • No manual Windows plugin loading, signing, registration, or WSL service restart validation was performed.

Checklist

  • Tests added or updated when relevant
  • Documentation updated when relevant
  • Examples updated when relevant
  • No unrelated changes included

@mveril mveril force-pushed the feature/version-capabilities branch from da5b7a9 to 130186f Compare May 30, 2026 15:28
@mveril mveril force-pushed the feature/version-capabilities branch from ef21362 to 66b925f Compare May 30, 2026 21:26
@mveril mveril merged commit bf3e990 into develop May 30, 2026
6 checks passed
@mveril mveril deleted the feature/version-capabilities branch May 30, 2026 21:34
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.

1 participant