diff --git a/.github/workflows/check-test.yaml b/.github/workflows/check-test.yaml index 565c375..5392d98 100644 --- a/.github/workflows/check-test.yaml +++ b/.github/workflows/check-test.yaml @@ -2,25 +2,33 @@ name: Check and Test on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: - build: - + cargo-check-test: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Format + run: cargo fmt --check + - name: Build + run: cargo build --all-targets --all-features + - name: Clippy + run: cargo clippy --all-targets --all-features + - name: Run tests + run: cargo test + semver: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Format - run: cargo fmt --check - - name: Build - run: cargo build --all-targets --all-features - - name: Clippy - run: cargo clippy --all-targets --all-features - - name: Run tests - run: cargo test + - uses: actions/checkout@v3 + - uses: cargo-bins/cargo-binstall@main + - name: Install cargo-semver-checks + run: cargo binstall -y cargo-semver-checks + - name: Check + run: cargo semver-checks check-release -p await-tree diff --git a/Cargo.toml b/Cargo.toml index 5c8be25..73c02a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "await-tree" -version = "0.1.2" +version = "0.2.0" edition = "2021" description = "Instrument await-tree for actor-based applications." repository = "https://github.com/risingwavelabs/await-tree" @@ -11,10 +11,10 @@ license = "Apache-2.0" [dependencies] coarsetime = "0.1" -derive_builder = "0.12" +derive_builder = "0.20" flexstr = "0.9" indextree = "4" -itertools = "0.11" +itertools = "0.12" parking_lot = "0.12" pin-project = "1" tokio = { version = "1", features = ["rt"] } @@ -22,7 +22,7 @@ tracing = "0.1" weak-table = "0.3.2" [dev-dependencies] -criterion = { version = "0.4", features = ["async", "async_tokio"] } +criterion = { version = "0.5", features = ["async", "async_tokio"] } futures = { version = "0.3", default-features = false, features = ["alloc"] } tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "macros"] } diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..bc8a658 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.74