Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cargo-venv

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cargo-venv

Cargo Virtual Environment

  • 0.0.6
  • Source
  • PyPI
  • Socket score

Maintainers
1

Cargo Virtual Environment

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

Table of Contents

  • Installation
  • Usage

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc