Giter VIP home page Giter VIP logo

cargo-temp's Introduction

cargo-temp

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

Cargo-temp demo

Install

Requires Rust 1.51.

cargo install cargo-temp

Usage

Create a new temporary project:

  • With no additional dependencies: $ cargo-temp

  • With multiple dependencies: $ cargo-temp rand tokio

  • With a dependency that have a fixed version: $ cargo-temp anyhow==1.0.13

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

  • temporary_project_dir: path where the temporary projects are created (cache directory by default).
  • cargo_target_dir: cargo's target directory override (unset by default). This setting is ignored if CARGO_TARGET_DIR is already set.
  • editor and editor_args: path to an IDE to start instead of a shell and arguments for it (unset by default).

Example config to run VS Code on Unix

editor = "/usr/bin/code"
editor_args = [ "--wait", "--new-window" ]

Example config to run VS Code on Windows

editor = "C:\\Program Files\\Microsoft VS Code\\Code.exe"
editor_args = [ "--wait", "--new-window" ]

cargo-temp's People

Contributors

cecton avatar yohdeadfall avatar yozhgoor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.