Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Run cargo init as last step if a project doesn't already exist #5

Closed
cyntheticfox opened this issue Mar 27, 2021 · 1 comment
Closed
Labels

Comments

@cyntheticfox
Copy link
Contributor

Not sure how complex it would be to implement, but running cargo init with the package name would be super useful as a final step. If it can also init as a library when passing the -L flag, that'd be even better.

@yusdacra
Copy link
Owner

This should be fairly easy to implement. We can check for the existence of a Cargo.toml before running cargo init. I'm not sure if cargo init does this, if it does we can just get away by calling cargo init.

@yusdacra yusdacra changed the title Run cargo init at the End Run cargo init as last step if a project doesn't already exist Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants