feat: support install.rust()#2052
Merged
gaocegege merged 3 commits intotensorchord:mainfrom Nov 5, 2025
Merged
Conversation
Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the Rust programming language to envd, enabling users to install Rust in their development environments using the install.rust() function.
- Implements Rust language support via rustup installation
- Adds frontend API and backend IR implementation for Rust installation
- Includes E2E test coverage to verify Rust installation functionality
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/lang/ir/v1/system.go | Adds "rust" case to language compilation logic with version support |
| pkg/lang/ir/v1/rust.go | New file implementing Rust installation via rustup with configurable version |
| pkg/lang/ir/v1/interface.go | Adds Rust() function to the IR interface |
| pkg/lang/frontend/starlark/v1/install/install.go | Adds ruleFuncRust to expose install.rust() to Starlark frontend |
| pkg/lang/frontend/starlark/v1/install/const.go | Adds ruleRust constant |
| envd/api/v1/install.py | Adds Python API documentation for rust() function |
| e2e/language/testdata/rust/build.envd | Test configuration file for Rust E2E test |
| e2e/language/rust_test.go | E2E test to verify Rust installation |
| go.mod | Updates Go version from 1.24.6 to 1.25.1 |
| go.sum | Dependency updates (various package version bumps) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Keming <kemingyang@tensorchord.ai>
gaocegege
approved these changes
Nov 5, 2025
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.
No description provided.