Skip to content

Commit 3490192

Browse files
committed
publish 0.6.0
1 parent 9584ff5 commit 3490192

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

open-coroutine/build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,17 @@ fn main() {
4444
.parent()
4545
.expect("can not find deps dir")
4646
.join("deps");
47+
let dir = read_dir(hook_deps.clone());
48+
if dir.is_err() {
49+
// only publish
50+
return;
51+
}
4752
let lib_names = [
4853
String::from("libopen_coroutine_hook.so"),
4954
String::from("libopen_coroutine_hook.dylib"),
5055
String::from("open_coroutine_hook.lib"),
5156
];
52-
for entry in read_dir(hook_deps.clone())
53-
.expect("Failed to read deps")
54-
.flatten()
55-
{
57+
for entry in dir.expect("Failed to read deps").flatten() {
5658
let file_name = entry.file_name().to_string_lossy().to_string();
5759
if !file_name.contains("open_coroutine_hook") {
5860
continue;

0 commit comments

Comments
 (0)