Compare commits
2
Commits
842c4c9b0c
..
0.7.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e77c546cb2 | ||
|
|
67e8520b08 |
Generated
+1
-1
@@ -1778,7 +1778,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sustenance"
|
name = "sustenance"
|
||||||
version = "0.4.0"
|
version = "0.7.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argon2",
|
"argon2",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "sustenance"
|
name = "sustenance"
|
||||||
version = "0.4.0"
|
version = "0.7.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
# Set the Cargo.toml version, commit it, and tag the commit with that version.
|
||||||
|
# Usage: just tag 1.2.3
|
||||||
|
tag ver:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Validate the version argument.
|
||||||
|
if [[ ! "{{ver}}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
|
echo "error: version must be in the form X.Y.Z (got '{{ver}}')" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Bump the version in Cargo.toml.
|
||||||
|
sed -i -E "s/^version = \".*\"/version = \"{{ver}}\"/" Cargo.toml
|
||||||
|
|
||||||
|
# Regenerate Cargo.lock so it reflects the new version.
|
||||||
|
cargo build
|
||||||
|
|
||||||
|
# Stage, commit, and tag.
|
||||||
|
git add Cargo.toml Cargo.lock
|
||||||
|
git commit -m "version {{ver}} [skip ci]"
|
||||||
|
git tag "{{ver}}"
|
||||||
|
|
||||||
|
# Run the Rust unit tests.
|
||||||
|
# Usage: just test
|
||||||
|
test:
|
||||||
|
cargo test --all
|
||||||
|
|
||||||
|
# Format the Rust code.
|
||||||
|
# Usage: just fmt
|
||||||
|
fmt:
|
||||||
|
cargo fmt --all
|
||||||
|
|
||||||
|
# Run the end-to-end Playwright tests.
|
||||||
|
# Usage: just e2e
|
||||||
|
e2e:
|
||||||
|
cd e2e && npm test
|
||||||
Reference in New Issue
Block a user