From 5d887b535e7b8b93a3b34a820ec60342a689f025 Mon Sep 17 00:00:00 2001 From: trevyn <230691+trevyn@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:46:16 +0400 Subject: [PATCH] test direct-minimal-versions (#42) * test direct-minimal-versions * set `ahash` minimal-version --- .github/workflows/ci.yml | 18 +++++++++++++++++- turbosql-impl/Cargo.toml | 19 ++++++++++--------- turbosql/Cargo.toml | 21 +++++++++++---------- 3 files changed, 38 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0b3189..e556579 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,8 +70,24 @@ jobs: run: cargo test --features "test" -- --nocapture --test-threads=1 --skip ui working-directory: "turbosql" + minimal-versions: + name: test minimal-versions + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - run: rustup default nightly && rustup update nightly + + - uses: taiki-e/install-action@cargo-hack + - uses: taiki-e/install-action@cargo-minimal-versions + + - run: cargo minimal-versions check --direct + - run: cargo minimal-versions test --direct --features test -- --test-threads=1 + - run: cargo minimal-versions doc --direct --no-deps + publish: - needs: [test] + needs: [test, minimal-versions] runs-on: ubuntu-latest if: ${{ contains(github.event.head_commit.message, 'turbosql@') && github.event_name == 'push' && github.ref == 'refs/heads/main' }} diff --git a/turbosql-impl/Cargo.toml b/turbosql-impl/Cargo.toml index 5c8de1f..3b04dbc 100644 --- a/turbosql-impl/Cargo.toml +++ b/turbosql-impl/Cargo.toml @@ -11,16 +11,17 @@ version = "0.10.0" proc-macro = true [dependencies] -fs2 = "0.4" -once_cell = "1" -proc-macro-error = "1" -proc-macro2 = "1" -quote = "1" +ahash = "0.8.7" +fs2 = "0.4.0" +once_cell = "1.18.0" +proc-macro-error = "1.0.0" +proc-macro2 = "1.0.62" +quote = "1.0.28" regex = "1.5.5" -rusqlite = {version = "0.32", features = ["bundled", "blob", "column_decltype"]} -serde = {version = "1", features = ["derive"]} -syn = {version = "2", features = ["extra-traits", "full"]} -toml = "0.8" +rusqlite = {version = "0.32.0", features = ["bundled", "blob", "column_decltype"]} +serde = {version = "1.0.145", features = ["derive"]} +syn = {version = "2.0.31", features = ["extra-traits", "full"]} +toml = "0.8.0" [features] sqlite-compat-no-strict-tables = [] diff --git a/turbosql/Cargo.toml b/turbosql/Cargo.toml index c3e8084..6ab1154 100644 --- a/turbosql/Cargo.toml +++ b/turbosql/Cargo.toml @@ -15,19 +15,20 @@ version = "0.10.0" turbosql-impl = {path = "../turbosql-impl", version = "=0.10.0"} [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -directories-next = "2" -log = "0.4" -once_cell = "1" -rusqlite = {version = "0.32", features = ["bundled", "blob"]} -serde = {version = "1", features = ["derive"]} -serde_json = "1" -thiserror = "1" -toml = "0.8" +ahash = "0.8.7" +directories-next = "2.0.0" +log = "0.4.4" +once_cell = "1.18.0" +rusqlite = {version = "0.32.0", features = ["bundled", "blob"]} +serde = {version = "1.0.145", features = ["derive"]} +serde_json = "1.0.0" +thiserror = "1.0.7" +toml = "0.8.0" [dev-dependencies] -rustversion = "1" +rustversion = "1.0.0" tokio = {version = "1.23.1", features = ["rt-multi-thread", "macros"]} -trybuild = {version = "1", features = ["diff"]} +trybuild = {version = "1.0.58", features = ["diff"]} [features] sqlite-compat-no-strict-tables = ["turbosql-impl/sqlite-compat-no-strict-tables"]