Skip to content

Commit

Permalink
test direct-minimal-versions (#42)
Browse files Browse the repository at this point in the history
* test direct-minimal-versions

* set `ahash` minimal-version
  • Loading branch information
trevyn authored Jul 25, 2024
1 parent 34a9772 commit 5d887b5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 20 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}

Expand Down
19 changes: 10 additions & 9 deletions turbosql-impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
21 changes: 11 additions & 10 deletions turbosql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 5d887b5

Please sign in to comment.