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! :))
Metadata
Release files for rustenv 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rustenv-0.0.6.tar.gz | 4.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rustenv-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.9 kB
Release files / rustenv-0.0.6.tar.gz
| Download URL | rustenv-0.0.6.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afd8ea9a14b94ed796b402f9b76ff12e35365d3c4fc02fcaab31399e5fc088e3
|
|
BLAKE2b-256 checksum How to use checksums |
1dac3501a25e6f407ea00008e6376a2570af2ffd12653c018a7dacabfe4e359d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / rustenv-0.0.6-py2.py3-none-any.whl
| Download URL | rustenv-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
85018b9f67f26ecf3a5e3a2e54b0ecf4401ce2ffb3f017f41c5c6e71c04cbd83
|
|
BLAKE2b-256 checksum How to use checksums |
f36465debf1a22d7de88a05b10dc32da5d61d849a6df60ead159f32f84e3fa74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for rustenv 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.