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
rustenv-0.0.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for rustenv-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06d009236788a5d7a3bcb766e23b311dd1630c9fcba12a6b0c1389da32095a3 |
|
MD5 | 7dc80fde95ee2d537f079c0cce7ae138 |
|
BLAKE2b-256 | be8e1e560fecb85a2a9096c313a33ad02d13c8c030e1d3abe66690d1c6dbd2f8 |