Commit 13b0213f authored by Kornel's avatar Kornel
Browse files

Merge branch 'master' into 'master'

Don't bail when reading Cargo.toml from a path with no src/

See merge request !5
parents 411f0300 a289da16
Pipeline #379773867 passed with stage
in 1 minute and 54 seconds
......@@ -3,6 +3,7 @@
//!
//! See `Manifest::from_slice`.
use std::collections::HashSet;
use std::fs;
use std::io;
use std::path::Path;
......@@ -163,7 +164,7 @@ impl<Metadata: for<'a> Deserialize<'a>> Manifest<Metadata> {
fs: impl AbstractFilesystem,
) -> Result<(), Error> {
if let Some(ref package) = self.package {
let src = fs.file_names_in("src")?;
let src = fs.file_names_in("src").unwrap_or(HashSet::new());
if let Some(ref mut lib) = self.lib {
lib.required_features.clear(); // not applicable
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment