https://github.com/chriskuehl/rustenv
Virtual, activate-able environments for Rust
https://github.com/chriskuehl/rustenv
cargo rust rustup
Last synced: 3 months ago
JSON representation
Virtual, activate-able environments for Rust
- Host: GitHub
- URL: https://github.com/chriskuehl/rustenv
- Owner: chriskuehl
- License: other
- Created: 2018-06-02T22:30:58.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-02-17T22:33:26.000Z (5 months ago)
- Last Synced: 2025-03-28T22:14:50.370Z (4 months ago)
- Topics: cargo, rust, rustup
- Language: Python
- Homepage:
- Size: 130 KB
- Stars: 91
- Watchers: 6
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/chriskuehl/rustenv/actions)
[](https://pypi.org/project/rustenv/)rustenv
==========Create virtual, activate-able environments for Rust, similar to `virtualenv`
for Python.A virtual environment is a self-contained installation of Rust, Cargo, etc.,
which is completely isolated from any user-level installations you may have.For example:
```bash
# Create a new rustenv
$ rustenv renv# Run a command in it
$ renv/bin/rustc --version
rustc 1.26.1 (827013a31 2018-05-25)
$ renv/bin/cargo --version
cargo 1.26.0 (0e7c5a931 2018-04-06)# Activate it to avoid having to prefix your commands
$ . renv/bin/activate
(renv) $ rustc --version
rustc 1.26.1 (827013a31 2018-05-25)# Install hello-cli: https://crates.io/crates/hello-cli
(renv) $ cargo install hello-cli
(renv) $ hello
Hello World!# Deactivate it to restore your PATH and PS1
(renv) $ deactivate_rustenv
$ rustc --version
command not found: rustc
```## Installation
rustenv is [available via PyPI](https://pypi.org/project/rustenv/) and can be
installed using `pip`:```bash
$ pip install rustenv
```## Project status
### What works right now* Everything in the example above.
### Remaining work
* Provide some additional options when creating the rustenv:
* Allow specifying rustc / cargo version
* Allow disabling PS1 modification, similar to virtualenv
* ...and more? (file an issue! :))