Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

jobs:
test:
name: test ${{ matrix.channel }}-${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,6 +47,11 @@ jobs:
log-level: warn
command: check
arguments: --all-features
- name: Build Docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all
- name: Run tests
env:
CHANNEL: ${{ matrix.channel }}
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
]

[workspace.package]
version = "0.6.14"
version = "0.6.15"
edition = "2021"
authors = ["[email protected]"]
repository = "https://github.com/acl-dev/open-coroutine"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn main() {
}
```

## 🪽 Advanced Usage
## 🪶 Advanced Usage

### create a task with priority

Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn main() {
}
```

## 🪽 进阶使用
## 🪶 进阶使用

### 创建具有优先级的任务

Expand Down
2 changes: 1 addition & 1 deletion core/src/common/ordered_work_steal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
.store(self.len().saturating_sub(1), Ordering::Release);
return Some(item);
}
Steal::Retry => continue,
Steal::Retry => {}

Check warning on line 107 in core/src/common/ordered_work_steal.rs

View check run for this annotation

Codecov / codecov/patch

core/src/common/ordered_work_steal.rs#L107

Added line #L107 was not covered by tests
Steal::Empty => break,
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/common/work_steal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
.store(self.len().saturating_sub(1), Ordering::Release);
return Some(item);
}
Steal::Retry => continue,
Steal::Retry => {}

Check warning on line 77 in core/src/common/work_steal.rs

View check run for this annotation

Codecov / codecov/patch

core/src/common/work_steal.rs#L77

Added line #L77 was not covered by tests
Steal::Empty => return None,
}
}
Expand Down
15 changes: 12 additions & 3 deletions open-coroutine/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ fn main() {
);
let crates_parent = if crates_parent_dirs.len() == 1 {
crates_parent_dirs.first().expect("host dir not found")
} else {
let rustup_dist_server =
var("RUSTUP_DIST_SERVER").expect("RUSTUP_DIST_SERVER not found");
} else if let Ok(rustup_dist_server) = var("RUSTUP_DIST_SERVER") {
let host = rustup_dist_server
.split("://")
.last()
Expand All @@ -109,6 +107,17 @@ fn main() {
})
.expect("host dir not found")
})
} else {
crates_parent_dirs
.iter()
.find(|entry| {
entry
.file_name()
.to_string_lossy()
.to_string()
.contains("crates.io")
})
.expect("host dir not found")
}
.file_name()
.to_string_lossy()
Expand Down
Loading