Is there a script to create a new project from a Rust library example?

Is there a script to create a separate starter project from an example in a library crate? The script would transform a copy of the code so dependencies internal to the create are expressed as external changing Cargo.toml and use references in .rs files.

I don't think so, but you can make a cargo subcommand.

GitHub - cargo-generate/cargo-generate: cargo, make me a project maybe?

1 Like