Skip to content

Add header to the request context#93

Merged
shadanan merged 1 commit intomainfrom
enrich
Dec 9, 2025
Merged

Add header to the request context#93
shadanan merged 1 commit intomainfrom
enrich

Conversation

@shadanan
Copy link
Copy Markdown
Contributor

@shadanan shadanan commented Dec 9, 2025

No description provided.

@shadanan shadanan enabled auto-merge (squash) December 9, 2025 19:50
@shadanan shadanan merged commit 4cec495 into main Dec 9, 2025
1 check passed
@shadanan shadanan deleted the enrich branch December 9, 2025 19:51
@shadanan shadanan mentioned this pull request Dec 9, 2025
shadanan added a commit that referenced this pull request Dec 9, 2025
## 🤖 New release

* `axum-anyhow`: 0.9.1 -> 0.10.0 (⚠ API breaking changes)

### ⚠ `axum-anyhow` breaking changes

```text
--- failure auto_trait_impl_removed: auto trait no longer implemented ---

Description:
A public type has stopped implementing one or more auto traits. This can break downstream code that depends on the traits being implemented.
        ref: https://doc.rust-lang.org/reference/special-types-and-traits.html#auto-traits
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/auto_trait_impl_removed.ron

Failed in:
  type ErrorInterceptorLayer is no longer UnwindSafe, in /tmp/.tmpaVdEEi/axum-anyhow/src/middleware.rs:197
  type ErrorInterceptorLayer is no longer RefUnwindSafe, in /tmp/.tmpaVdEEi/axum-anyhow/src/middleware.rs:197

--- failure derive_trait_impl_removed: built-in derived trait no longer implemented ---

Description:
A public type has stopped deriving one or more traits. This can break downstream code that depends on those types implementing those traits.
        ref: https://doc.rust-lang.org/reference/attributes/derive.html#derive
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/derive_trait_impl_removed.ron

Failed in:
  type ErrorInterceptorLayer no longer derives Copy, in /tmp/.tmpaVdEEi/axum-anyhow/src/middleware.rs:197

--- failure function_missing: pub fn removed or renamed ---

Description:
A publicly-visible function cannot be imported by its prior path. A `pub use` may have been removed, or the function itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/function_missing.ron

Failed in:
  function axum_anyhow::set_error_enricher, previously in file /tmp/.tmp2LvzZ3/axum-anyhow/src/middleware.rs:55

--- failure struct_missing: pub struct removed or renamed ---

Description:
A publicly-visible struct cannot be imported by its prior path. A `pub use` may have been removed, or the struct itself may have been renamed or removed entirely.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#item-remove
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/struct_missing.ron

Failed in:
  struct axum_anyhow::RequestContext, previously in file /tmp/.tmp2LvzZ3/axum-anyhow/src/middleware.rs:21

--- failure unit_struct_changed_kind: unit struct changed kind ---

Description:
A public unit struct has been changed to a normal (curly-braces) struct, which cannot be constructed using the same struct literal syntax.
        ref: rust-lang/cargo#10871
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.45.0/src/lints/unit_struct_changed_kind.ron

Failed in:
  struct ErrorInterceptorLayer in /tmp/.tmpaVdEEi/axum-anyhow/src/middleware.rs:197
```

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.10.0](v0.9.1...v0.10.0)
- 2025-12-09

### Other

- Improve readability of middleware
([#96](#96))
- Store the error enricher and the request context together
([#95](#95))
- Add header to the request context
([#93](#93))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant