Be less strict about loading directory sources
authorAlex Crichton <alex@alexcrichton.com>
Wed, 24 Jan 2018 18:04:47 +0000 (10:04 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 24 Jan 2018 23:41:45 +0000 (15:41 -0800)
commit08d48601f2ae76fb0680a6a148fcb61923b20092
tree0e767c1ac2a943acbfc5cbbff8c55f1305c258a4
parentb1c3e781ec4053f10534c1bf9e7e0a603befed45
Be less strict about loading directory sources

Historically Cargo has been pretty strict about loading directory sources by
ensuring that everything inside was a crate. This was intended to protect
against accidental misconfiguration by failing loudly rather than silently
returning fewer crates.

This has caused a number of issues, however:

* #4969
* #4811
* #3899

so it seems like this is too aspirational of Cargo

Closes #4811
Closes #4969
src/cargo/sources/directory.rs
tests/directory.rs