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

Fix duplicate src/main.rs discovery #51

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Aug 19, 2024

If a [[bin]] for src/main.rs is explicitly declared with a different name than the crate the code would previously add two entries to the bin field of the Manifest. This commit fixes the discovery by only comparing the paths, but not the names of the discovered targets.

@LukeMathWalker if you're currently busy I'm happy merge and release this if you grant me the necessary permissions. also, congrats! 😉

If a `[[bin]]` for `src/main.rs` is explicitly declared with a different name than the crate the code would previously add two entries to the `bin` field of the `Manifest`. This commit fixes the discovery by only comparing the paths, but not the names of the discovered targets.
@LukeMathWalker LukeMathWalker merged commit 37530d0 into LukeMathWalker:master Aug 21, 2024
4 checks passed
@Turbo87 Turbo87 added the bug Something isn't working label Aug 22, 2024
@Turbo87 Turbo87 deleted the fix-duplicate-bins branch August 22, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants