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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.24.14] - 2025-10-30

### Fixed
- Declared a dedicated `benchmarks` Cargo feature and disabled the default
library benchmark harness so automation can enable Criterion with custom CLI
flags, restoring support for `--save-baseline` and other passthrough options
in CI.
- Documented the required feature flag in the README and template to keep local
runs aligned with the CI workflow.

## [0.24.13] - 2025-10-29

### 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.

11 changes: 10 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[package]
name = "masterror"
version = "0.24.13"
version = "0.24.14"
rust-version = "1.90"
edition = "2024"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -78,6 +78,7 @@ frontend = ["dep:wasm-bindgen", "dep:js-sys", "dep:serde-wasm-bindgen", "std"]
turnkey = ["std"]
tonic = ["dep:tonic", "std"]
openapi = ["dep:utoipa", "std"]
benchmarks = ["std"]

[workspace.dependencies]
masterror-derive = { version = "0.9.2" }
Expand Down Expand Up @@ -182,6 +183,7 @@ feature_order = [
"tonic",
"frontend",
"turnkey",
"benchmarks",
]
feature_snippet_group = 4
conversion_lines = [
Expand Down Expand Up @@ -261,5 +263,12 @@ description = "Log to the browser console and convert to JsValue on WASM"
[package.metadata.masterror.readme.features.turnkey]
description = "Ship Turnkey-specific error taxonomy and conversions"

[package.metadata.masterror.readme.features.benchmarks]
description = "Enable Criterion benchmarks and CI baseline tooling"
extra = [
"Primarily used for local profiling and continuous benchmarking runs"
]

[lib]
crate-type = ["cdylib", "rlib"]
bench = false
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ The build script keeps the full feature snippet below in sync with

~~~toml
[dependencies]
masterror = { version = "0.24.13", default-features = false }
masterror = { version = "0.24.14", default-features = false }
# or with features:
# masterror = { version = "0.24.13", features = [
# masterror = { version = "0.24.14", features = [
# "std", "axum", "actix", "openapi",
# "serde_json", "tracing", "metrics", "backtrace",
# "sqlx", "sqlx-migrate", "reqwest", "redis",
# "validator", "config", "tokio", "multipart",
# "teloxide", "telegram-webapp-sdk", "tonic", "frontend",
# "turnkey"
# "turnkey", "benchmarks"
# ] }
~~~

Expand All @@ -100,7 +100,7 @@ Criterion benchmarks cover the hottest conversion paths so regressions are
visible before shipping. Run them locally with:

~~~sh
cargo bench --bench error_paths
cargo bench -F benchmarks --bench error_paths
~~~

The suite emits two groups:
Expand All @@ -112,7 +112,7 @@ The suite emits two groups:
build RFC 7807 payloads via `ProblemJson::from_app_error`, showing how message
redaction and field policies impact serialization.

Adjust Criterion CLI flags (for example `--sample-size 200`) after `--` to trade
Adjust Criterion CLI flags (for example `--sample-size 200` or `--save-baseline local`) after `--` to trade
throughput for tighter confidence intervals when investigating changes.

---
Expand Down
5 changes: 3 additions & 2 deletions README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Criterion benchmarks cover the hottest conversion paths so regressions are
visible before shipping. Run them locally with:

~~~sh
cargo bench --bench error_paths
cargo bench -F benchmarks --bench error_paths
~~~

The suite emits two groups:
Expand All @@ -107,7 +107,7 @@ The suite emits two groups:
build RFC 7807 payloads via `ProblemJson::from_app_error`, showing how message
redaction and field policies impact serialization.

Adjust Criterion CLI flags (for example `--sample-size 200`) after `--` to trade
Adjust Criterion CLI flags (for example `--sample-size 200` or `--save-baseline local`) after `--` to trade
throughput for tighter confidence intervals when investigating changes.

---
Expand Down Expand Up @@ -447,3 +447,4 @@ assert_eq!(problem.grpc.expect("grpc").name, "UNAUTHENTICATED");
---

MSRV: **{{MSRV}}** · License: **MIT OR Apache-2.0** · No `unsafe`

Loading