diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cc410d3..b01c143 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ jobs: - macos-latest rust: - stable - - 1.73.0 # MSRV + - 1.78.0 # MSRV include: - os: ubuntu-latest rust: stable @@ -27,32 +27,25 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout source - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: ${{ matrix.rust }} - default: true - override: true + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v1 + - name: cargo check + run: cargo check + + - name: cargo build + run: cargo build + - name: cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --workspace --all-features + run: cargo test - name: rustfmt if: github.event_name == 'pull_request' && matrix.lint - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check - name: clippy if: github.event_name == 'pull_request' && matrix.lint - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all --tests --all-features -- -D warnings + run: cargo clippy --all --tests -- -D warnings diff --git a/Cargo.toml b/Cargo.toml index 49312e3..f132e3f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "xtask-watch" version = "0.2.3" edition = "2021" -rust-version = "1.73" +rust-version = "1.78" license = "MIT OR Apache-2.0" description = "A customizable helper to watch for changes in your projects using xtask." homepage = "https://github.com/rustminded/xtask-wasm" @@ -15,12 +15,12 @@ include = ["src/**/*.rs", "README.md", "LICENSE.Apache-2.0", "LICENSE.MIT"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -anyhow = "1.0.52" -cargo_metadata = "0.15.0" -clap = { version = "4.0.18", features = ["derive"] } -lazy_static = "1.4.0" -log = "0.4.14" -notify = "5.0.0" +anyhow = "1.0.95" +cargo_metadata = "0.19.1" +clap = { version = "4.5.28", features = ["derive"] } +lazy_static = "1.5.0" +log = "0.4.25" +notify = "8.0.0" [target.'cfg(unix)'.dependencies] -libc = "0.2.112" +libc = "0.2.169"