Skip to content

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 20, 2025
1 parent 209e6a8 commit f05fc7a
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 87 deletions.
129 changes: 57 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sqlite-hashes"
version = "0.7.8" # This value is also used in the README.md
version = "0.7.9" # This value is also used in the README.md
description = "Hashing functions for SQLite with aggregation support: MD5, SHA1, SHA256, SHA512, FNV-1a, xxHash"
authors = ["Yuri Astrakhan <[email protected]>"]
repository = "https://github.com/nyurik/sqlite-hashes"
Expand Down
31 changes: 18 additions & 13 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,15 @@ sqlite3 := 'sqlite3'
clean:
cargo clean

# Update dependencies, including breaking changes
update:
cargo +nightly -Z unstable-options update --breaking
cargo update

# Find the minimum supported Rust version. Install it with `cargo install cargo-msrv`
msrv:
cargo msrv find

build: build-lib build-ext

build-lib:
Expand All @@ -21,12 +26,12 @@ build-lib:
build-ext *ARGS:
# Window is not supported because it requires bundling the SQLite library
# See https://github.com/rusqlite/rusqlite/discussions/1423
cargo build --example sqlite_hashes --no-default-features --features default_loadable_extension {{ ARGS }}
cargo build --example sqlite_hashes --no-default-features --features default_loadable_extension {{ARGS}}

cross-build-ext *ARGS:
# Window is not supported because it requires bundling the SQLite library
# See https://github.com/rusqlite/rusqlite/discussions/1423
cross build --example sqlite_hashes --no-default-features --features default_loadable_extension {{ ARGS }}
cross build --example sqlite_hashes --no-default-features --features default_loadable_extension {{ARGS}}

cross-build-ext-aarch64: (cross-build-ext "--target=aarch64-unknown-linux-gnu" "--release")

Expand Down Expand Up @@ -100,8 +105,8 @@ cross-test-ext-aarch64:

[private]
test-one-lib *ARGS:
@echo "### TEST {{ ARGS }} #######################################################################################################################"
cargo test {{ ARGS }}
@echo "### TEST {{ARGS}} #######################################################################################################################"
cargo test {{ARGS}}

# Test documentation
test-doc:
Expand All @@ -122,16 +127,16 @@ ci-test-msrv: rust-info check-lib test
is-sqlite3-available:
#!/usr/bin/env sh
set -eu
if ! command -v {{ sqlite3 }} > /dev/null; then
echo "{{ sqlite3 }} executable could not be found"
if ! command -v {{sqlite3}} > /dev/null; then
echo "{{sqlite3}} executable could not be found"
exit 1
fi
echo "Found {{ sqlite3 }} executable:"
{{ sqlite3 }} --version
echo "Found {{sqlite3}} executable:"
{{sqlite3}} --version
# Run integration tests and save its output as the new expected output
bless *ARGS: (cargo-install "cargo-insta")
cargo insta test --accept --unreferenced=auto {{ ARGS }}
cargo insta test --accept --unreferenced=auto {{ARGS}}

# Check if a certain Cargo command is installed, and install it if needed
[private]
Expand All @@ -140,11 +145,11 @@ cargo-install $COMMAND $INSTALL_CMD="" *ARGS="":
set -eu
if ! command -v $COMMAND > /dev/null; then
if ! command -v cargo-binstall > /dev/null; then
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
cargo install ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
echo "$COMMAND could not be found. Installing it with cargo install ${INSTALL_CMD:-$COMMAND} {{ARGS}}"
cargo install ${INSTALL_CMD:-$COMMAND} {{ARGS}}
else
echo "$COMMAND could not be found. Installing it with cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}"
cargo binstall ${INSTALL_CMD:-$COMMAND} {{ ARGS }}
echo "$COMMAND could not be found. Installing it with cargo binstall ${INSTALL_CMD:-$COMMAND} {{ARGS}}"
cargo binstall ${INSTALL_CMD:-$COMMAND} {{ARGS}}
fi
fi
Expand Down
Loading

0 comments on commit f05fc7a

Please sign in to comment.