Add Rust version check during adnt run [app] with upgrade prompt#10
Draft
Copilot wants to merge 3 commits into
Draft
Add Rust version check during adnt run [app] with upgrade prompt#10Copilot wants to merge 3 commits into
adnt run [app] with upgrade prompt#10Copilot wants to merge 3 commits into
Conversation
Co-authored-by: fmahon <109478+fmahon@users.noreply.github.com>
…or spinner Co-authored-by: fmahon <109478+fmahon@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Rust version check during adnt run for upgrades
Add Rust version check during Dec 5, 2025
adnt run [app] with upgrade prompt
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.
When running
adnt run [app], automatically check if the installed Rust toolchain meets the tool's minimum version requirement (fromrust-versionin Cargo.toml). Prompt user to upgrade viarustup updateif outdated.Changes
New
rust_version.rsmoduleVersionstruct with semver parsing andOrdimplementationget_installed_rust_version()- parsesrustc --versionoutputget_required_rust_version()- readspackage.rust-versionfrom Cargo.toml usingtomlcratecheck_rust_version()- compares versions, prompts for upgrade if neededIntegration in
tool_manager.rscreate_spinner()helper to reduce progress bar duplicationDependencies
toml = "0.9"for proper TOML parsingExample behavior
When a tool requires Rust 1.80+ but user has 1.70:
Tests
12 unit tests covering version parsing (including nightly/two-part variants), comparison, and Cargo.toml extraction.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.