chmp / cargo-wop

Run cargo on Rust source files without setting up a project
MIT License
1 stars 1 forks source link

Idea: Add a to-project command #14

Open chmp opened 3 years ago

chmp commented 3 years ago

Turn a script into a standard cargo project. For example:

cargo wop into-project script.rs ../path/to/project

Creates:

# NOTE: depending on the crate type
../path/to/project/src/main.rs
../path/to/project/Cargo.toml