Skip to content

Commit

Permalink
Print crate features in verbose mode (obi1kenobi#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
jw013 committed Mar 30, 2024
1 parent ee67123 commit 148b51f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rustdoc_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,17 @@ fn create_placeholder_rustdoc_manifest(
..DependencyDetail::default()
},
};
config.log_verbose(|config| {
if project_with_features.features.is_empty() {
return Ok(());
}
writeln!(
config.stderr(),
" Features: {}",
project_with_features.features.join(","),
)?;
Ok(())
})?;
let mut deps = DepsSet::new();
deps.insert(
crate_source.name()?.to_string(),
Expand Down

0 comments on commit 148b51f

Please sign in to comment.