cargo-temp

A CLI tool for linux (currently) that allow you to create a new rust project in a temporary directory with already installed dependencies.

Cargo-temp demo

Only *nix OS are supported for now because a shell is ran while the project is being edited by the user. It would be nice to have this working on Windows. If you know how to achieve this, please open an issue to tell us (or a PR.)

Install

Requires Rust 1.51.

cargo install cargo-temp

Usage

Create a new temporary project:

Features

If you change your mind and decide to keep the project you can just delete the TO_DELETE file and the directory will not be deleted when the shell exits.

Settings

The config file is located at {CONFIG_DIR}/cargo-temp/config.toml. When you run cargo-temp for the first time it will be created automatically