forked from databendlabs/openraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add monoio runtime in a separate crate. - Test: test MonoioRuntime with `Suite::test_all()` - Add CI: run monoio unit tests with a separate job, because it does belong to the workspace
- Loading branch information
1 parent
c6f4a77
commit b72ea56
Showing
5 changed files
with
472 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,6 +206,33 @@ jobs: | |
RUST_LOG: debug | ||
RUST_BACKTRACE: full | ||
|
||
|
||
# Test external crate. | ||
rt-monoio: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup | Checkout | ||
uses: actions/checkout@v2 | ||
|
||
|
||
- name: Setup | Toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: "nightly" | ||
override: true | ||
|
||
|
||
- name: Unit Tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --tests --manifest-path "rt-monoio/Cargo.toml" | ||
env: | ||
RUST_LOG: debug | ||
RUST_BACKTRACE: full | ||
|
||
|
||
# Feature "serde" will be enabled if one of the member crates enables | ||
# "serde", such as `memstore`, when building a cargo workspace. | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "openraft-rt-monoio" | ||
description = "monoio AsyncRuntime support for Openraft" | ||
documentation = "https://docs.rs/openraft-rt-monoio" | ||
readme = "README.md" | ||
version = "0.10.0" | ||
edition = "2021" | ||
authors = [ | ||
"Databend Authors <[email protected]>", | ||
] | ||
categories = ["algorithms", "asynchronous", "data-structures"] | ||
homepage = "https://github.com/datafuselabs/openraft" | ||
keywords = ["raft", "consensus"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/datafuselabs/openraft" | ||
|
||
[dependencies] | ||
openraft = { path = "../openraft", version = "0.10.0", default-features = false, features = ["singlethreaded"] } | ||
|
||
rand = "0.8" | ||
tokio = { version = "1.22", features = ["sync"] } | ||
monoio = "0.2.3" | ||
local-sync = "0.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# openraft-rt-monoio | ||
|
||
monoio [`AsyncRuntime`][rt_link] support for Openraft. | ||
|
||
[rt_link]: https://docs.rs/openraft/latest/openraft/async_runtime/trait.AsyncRuntime.html |
Oops, something went wrong.