Skip to content

Commit 1a4f3fe

Browse files
committed
only show libraries
1 parent fa244a3 commit 1a4f3fe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,15 @@ fn print_dir_contents(path: &str) -> miette::Result<()> {
184184
for entry in entries {
185185
let entry = entry.unwrap();
186186
let path = entry.path();
187-
println!("cargo:warning={}", path.display());
187+
188+
if path.is_file() {
189+
if let Some(ext) = path.extension() {
190+
let ext_str = ext.to_string_lossy().to_lowercase();
191+
if ["a", "dylib", "lib"].contains(&ext_str.as_str()) {
192+
println!("cargo:info={}", path.display());
193+
}
194+
}
195+
}
188196

189197
if path.is_dir() {
190198
print_dir_contents(path.to_str().unwrap())?;

0 commit comments

Comments
 (0)