Repository navigation
Establish workspace crate boundaries - #143
Merged
LunaStev merged 1 commit intoSep 23, 2026
Merged
Conversation
Move manifest, lockfile, resolver, compiler, and toolchain behavior into focused top-level crates while keeping src dedicated to the CLI. Preserve dependency and compiler behavior through workspace-wide tests, and harden manifest validation for unknown fields, empty sources, duplicate dependencies, and root-name conflicts. Signed-off-by: LunaStev <[email protected]>
LunaStev
marked this pull request as ready for review
September 23, 2026 05:57
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
manifest,lockfile,resolver,compiler, andtoolchaincrates.src/tree focused on CLI dispatch, command handling, and terminal output.x.pyvalidate every workspace package.Why
The previous single binary crate mixed CLI concerns with package management, lockfile, resolver, compiler, and toolchain implementation. Establishing explicit crate boundaries gives those systems independent APIs and tests while preserving Vex as the only user-facing binary.
The stricter manifest checks also prevent malformed declarations from reaching filesystem or Git operations and make dependency-name identity unambiguous throughout a transitive graph.
Behavior
vex.lockv2 format are unchanged.vex-*prefix is used.path,git,branch,tag, andrevvalues fail before project mutation.--locked,--offline, targeted updates, and rawwavecflag rejection retain their existing behavior.Closes #31
Closes #116
Closes #128
Closes #129
Validation
python3 x.py checkcargo test --lockedcargo build --lockedcargo check --workspace --locked --target x86_64-pc-windows-gnucargo check --workspace --locked --target aarch64-unknown-linux-gnucargo check --workspace --locked --target riscv64gc-unknown-linux-gnuwavecsmoke:vex init,vex run,vex fetch --locked --offline, andvex build --locked --offlinevex build --emit=objremains rejected as a raw compiler option