Virtual, activate-able environments for Rust
Project description
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:
# 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 and can be
installed using pip:
$ 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! :))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rustenv-0.0.6.tar.gz.
File metadata
- Download URL: rustenv-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd8ea9a14b94ed796b402f9b76ff12e35365d3c4fc02fcaab31399e5fc088e3
|
|
| MD5 |
1a3f56bc3f1b2a3ecdd8d946c19d9420
|
|
| BLAKE2b-256 |
1dac3501a25e6f407ea00008e6376a2570af2ffd12653c018a7dacabfe4e359d
|
File details
Details for the file rustenv-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: rustenv-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85018b9f67f26ecf3a5e3a2e54b0ecf4401ce2ffb3f017f41c5c6e71c04cbd83
|
|
| MD5 |
0bbbeb00e243e2473bb118698117abd0
|
|
| BLAKE2b-256 |
f36465debf1a22d7de88a05b10dc32da5d61d849a6df60ead159f32f84e3fa74
|