-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement target auto-discovery (#48)
* Add more tests for target auto-discovery * Reimplement target auto-discovery This fixes the merging behavior of the auto-discovery code. Previously an explicit `[[bin]]` would turn off the auto-discovery unconditionally, but: - in the 2018 edition the behavior was changed so that only `autobins = false` would disable the auto-discovery - the auto-discovery information should still be used to fill in the `path` values This commit changes the behavior to act accordingly. cargo shows errors in a couple of more situations (see tests), but the new implementation explicitly does not treat these as hard errors to be able to ignore broken target declarations in existing crates and turn them into warnings instead.
- Loading branch information
Showing
7 changed files
with
1,297 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.