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
cargo-venv-0.0.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for cargo_venv-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06814210bb51a281205f16201b58ff5434be5ed67b46b176d2ebb92521187659 |
|
MD5 | 7963d02c7e133009dfe67c4094936f8b |
|
BLAKE2b-256 | 8c064c88a4feb2eb1675a2472eaf6cbe37f56e31460b7c1789e5d18ad0c03f18 |