Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore src/lib.rs or src/main.rs depending on crate type #13

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

midnightexigent
Copy link
Contributor

Related issue: #12

`cargo-generate` will offer the ability to conditionnally include or exclude files starting from version `0.10.0`

This change conditionnaly ignores `src/lib.rs` or `src/main.rs` depending on the crate type being generated (ie. `lib` or `bin`)
@MarcoIeni
Copy link
Member

Cargo generate 0.10 is now released. I will have a look at this in the following days :)

@MarcoIeni MarcoIeni merged commit a6e0cfd into rust-github:main Sep 24, 2021
@MarcoIeni
Copy link
Member

Just tested it and it works, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants