Cargo Virtual Environment
Project description
Cargo Virtual Environment
A virtual environment tool similar to Python's virtual environments.
Table of Contents
Installation
pip install cargo-venv
Usage
Leveraging Cargo
's built-in command mechanism, you can simply call the following command to get a virtual environment called
venv
.
cargo venv
However, since this is a Python script, you can specify a different name by calling:
cargo-venv custom-name
Custom toolchain
You can also specify a custom toolchain rather than always depend on the latest. If a rust-toolchain
file is discovered
in your project, that version will be used to install the toolchain inside your virtual environment.
IDE Support
IntelliJ Idea
Under Settings > Languages and Frameworks > Rust
set the following fields to these values:
Toolchain Location
<venv-path>/.rustup/toolchains/<toolchain-version>/bin
Standard library
<venv-path>/.rustup/toolchains/<toolchain-version>/lib/rustlib/src/rust
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
File details
Details for the file cargo-venv-0.0.6.tar.gz
.
File metadata
- Download URL: cargo-venv-0.0.6.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34be594424c869e4046d8b88f2475a30b714a80eafbeed011a2820fe52b75d3e |
|
MD5 | 52b849c8658b726c00302249b3425d14 |
|
BLAKE2b-256 | 275a7bade7cc840968d054b363b14d778b7a856302bd1c281db78c3f2ce9fae8 |
File details
Details for the file cargo_venv-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: cargo_venv-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24a7a513f01604b55f2555540678288c6451dc7876cbd49354e3fba5e512170 |
|
MD5 | d084e1cef3382e39eefa3d8f8c80e38e |
|
BLAKE2b-256 | 990aca3c38340969705a754f87621b683ca2c7ba5cf1c79729a6cff1dd27ee1b |