Add Rust Cargo integration helpers#620
Open
YH390389859 wants to merge 1 commit into
Open
Conversation
8d8472c to
9e3abdd
Compare
9e3abdd to
1037643
Compare
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
Closes #100.
This adds initial Rust Cargo integration helpers for Lux-managed Rust projects:
Lux.RustandLux.Rust.CargohelpersCargo.tomlmanifestspriv/rustscaffold and Rust Cargo guideNotes
This intentionally does not try to replace Cargo's full dependency resolver or act as a complete TOML AST-preserving rewriter. The full manifest reader/writer is scoped to Lux-generated manifests, while the file-level dependency helpers patch only dependency sections to preserve workspace, target, binary, profile, and other unrelated manifest content.
Verification
mise exec -- mix format --check-formatted lib/lux/rust.ex lib/lux/rust/cargo.ex test/unit/lux/rust/cargo_test.exs mix.exs guides/language_support.md guides/language_support/rust_cargo.mdmise exec -- mix test test/unit/lux/rust/cargo_test.exs --include unit- 24 tests, 0 failuresmise exec -- mix test- 1 doctest, 4 properties, 1299 tests, 0 failures, 1288 excludedmise exec rust@stable -- cargo check --manifest-path priv/rust/Cargo.tomlgit diff --check