Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,33 @@ jobs:
with:
toolchain: ${{ steps.msrv.outputs.msrv }}

- name: Maybe publish masterror-template
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
shell: bash
run: |
set -euo pipefail
if cargo metadata --no-deps --format-version=1 \
| jq -e '.packages[] | select(.name=="masterror-template" and .source==null)' >/dev/null; then
echo "Publishing masterror-template..."
n=0
until [ $n -ge 5 ]
do
if cargo +${{ steps.msrv.outputs.msrv }} publish -p masterror-template --locked --token "$CARGO_REGISTRY_TOKEN"; then
echo "masterror-template published."
break
fi
n=$((n+1))
echo "Retry $n/5 for masterror-template..."
sleep $((5*n))
done
else
echo "No local masterror-template found; skipping."
fi

- name: Wait for crates.io index sync (after template)
run: sleep 15

- name: Maybe publish masterror-derive
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.10.8] - 2025-10-25

### Fixed
- Updated the release workflow to publish `masterror-template` before
`masterror-derive`, ensuring crates.io recognises the shared dependency during
release automation.

## [0.10.7] - 2025-10-24

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion 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 = "masterror"
version = "0.10.7"
version = "0.10.8"
rust-version = "1.90"
edition = "2024"
license = "MIT OR Apache-2.0"
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Stable categories, conservative HTTP mapping, no `unsafe`.

~~~toml
[dependencies]
masterror = { version = "0.10.7", default-features = false }
masterror = { version = "0.10.8", default-features = false }
# or with features:
# masterror = { version = "0.10.7", features = [
# masterror = { version = "0.10.8", features = [
# "axum", "actix", "openapi", "serde_json",
# "sqlx", "sqlx-migrate", "reqwest", "redis",
# "validator", "config", "tokio", "multipart",
Expand Down Expand Up @@ -66,10 +66,10 @@ masterror = { version = "0.10.7", default-features = false }
~~~toml
[dependencies]
# lean core
masterror = { version = "0.10.7", default-features = false }
masterror = { version = "0.10.8", default-features = false }

# with Axum/Actix + JSON + integrations
# masterror = { version = "0.10.7", features = [
# masterror = { version = "0.10.8", features = [
# "axum", "actix", "openapi", "serde_json",
# "sqlx", "sqlx-migrate", "reqwest", "redis",
# "validator", "config", "tokio", "multipart",
Expand Down Expand Up @@ -623,13 +623,13 @@ assert_eq!(resp.status, 401);
Minimal core:

~~~toml
masterror = { version = "0.10.7", default-features = false }
masterror = { version = "0.10.8", default-features = false }
~~~

API (Axum + JSON + deps):

~~~toml
masterror = { version = "0.10.7", features = [
masterror = { version = "0.10.8", features = [
"axum", "serde_json", "openapi",
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
] }
Expand All @@ -638,7 +638,7 @@ masterror = { version = "0.10.7", features = [
API (Actix + JSON + deps):

~~~toml
masterror = { version = "0.10.7", features = [
masterror = { version = "0.10.8", features = [
"actix", "serde_json", "openapi",
"sqlx", "reqwest", "redis", "validator", "config", "tokio"
] }
Expand Down
Loading