项目作者: DragosDumitrache

项目描述 :
Cargo Virtual Environment
高级语言: Python
项目地址: git://github.com/DragosDumitrache/cargo-venv.git
创建时间: 2020-08-23T08:08:10Z
项目社区:https://github.com/DragosDumitrache/cargo-venv

开源协议:MIT License

下载


Cargo Virtual Environment

A virtual environment tool similar to Python’s virtual environments.

Table of Contents

Installation

  1. 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.

  1. cargo venv

However, since this is a Python script, you can specify a different name by calling:

  1. 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

  1. <venv-path>/.rustup/toolchains/<toolchain-version>/bin

Standard library

  1. <venv-path>/.rustup/toolchains/<toolchain-version>/lib/rustlib/src/rust