axum/axum-extra
Vegard Sandengen 59a2960e42
Add ErrorKind::DeserializeError to specialize ErrorKind::Message (`extract::path::ErrorKind`) (#2720)
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde:🇩🇪:Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.

The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.

Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-11 16:56:25 +00:00
..
src Add ErrorKind::DeserializeError to specialize ErrorKind::Message (`extract::path::ErrorKind`) (#2720) 2024-11-11 16:56:25 +00:00
test_files Add `SpaRouter` (#904) 2022-04-03 18:29:37 +02:00
CHANGELOG.md Add `MethodFilter::CONNECT` (#2961) 2024-10-06 19:09:06 +00:00
Cargo.toml CI: allow `pin-project-lite` in public dependencies (#3020) 2024-11-07 17:27:41 +01:00
LICENSE Add `axum-extra` crate (#536) 2021-11-17 20:00:32 +00:00
README.md Update MSRV in READMEs (#2948) 2024-09-30 10:18:49 +02:00

README.md

axum-extra

Build status Crates.io Documentation

Extra utilities for axum.

More information about this crate can be found in the crate documentation.

Safety

This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% safe Rust.

Minimum supported Rust version

axum-extra's MSRV is 1.75.

Getting Help

You're also welcome to ask in the Discord channel or open an issue with your question.

Contributing

🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the axum project.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in axum by you, shall be licensed as MIT, without any additional terms or conditions.