You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently cargo infers binaries from files in src/bin. This works if you binary fits in one file, but if you need more than one file, you have to write custom [[bin]] specification in Cargo.toml.
Looks like a reasonable convention for multifile binary projects is this:
So let's infer src/bin/foo/main.rs as a binary named foo?
This should be mostly backwards compatible change. The only failure case is when someone has src/bin/foo/main.rs which is not a binary, and no [[bin]] sections are present, and this seems unlikely.
A potential edge case is
src/
bin/
foo.rs
foo/
main.rs
This should be an error.
FliegendeWurst, colin-kiegel, hcpl, therustmonk, schneiderfelipe and 1 more