forked from tokio-rs/axum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
394ba31
commit 678ebb7
Showing
6 changed files
with
496 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"axum", | ||
"axum-handle-error-extract", | ||
"examples/*", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
# Unreleased | ||
|
||
- None | ||
|
||
# 0.1.0 (05. November, 2021) | ||
|
||
- Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "axum-handle-error-extract" | ||
version = "0.1.0" | ||
authors = ["David Pedersen <[email protected]>"] | ||
categories = ["asynchronous", "network-programming", "web-programming"] | ||
description = "Error handling layer for axum that supports extractors and async functions" | ||
edition = "2018" | ||
homepage = "https://github.com/tokio-rs/axum" | ||
keywords = ["http", "web", "framework"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/tokio-rs/axum" | ||
|
||
[dependencies] | ||
axum = { path = "../axum" } | ||
tower-service = "0.3" | ||
tower-layer = "0.3" | ||
tower = { version = "0.4", features = ["util"] } | ||
pin-project-lite = "0.2" | ||
|
||
[dev-dependencies] | ||
tower = { version = "0.4", features = ["util", "timeout"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Copyright (c) 2019 Tower Contributors | ||
|
||
Permission is hereby granted, free of charge, to any | ||
person obtaining a copy of this software and associated | ||
documentation files (the "Software"), to deal in the | ||
Software without restriction, including without | ||
limitation the rights to use, copy, modify, merge, | ||
publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software | ||
is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice | ||
shall be included in all copies or substantial portions | ||
of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF | ||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | ||
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT | ||
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR | ||
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# axum-handle-error-extract | ||
|
||
Error handling layer for axum that supports extractors and async functions | ||
|
||
[![Build status](https://github.com/tokio-rs/axum-handle-error-extract/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tokio-rs/axum-handle-error-extract/actions/workflows/CI.yml) | ||
[![Crates.io](https://img.shields.io/crates/v/axum-handle-error-extract)](https://crates.io/crates/axum-handle-error-extract) | ||
[![Documentation](https://docs.rs/axum-handle-error-extract/badge.svg)](https://docs.rs/axum) | ||
|
||
More information about this crate can be found in the [crate documentation][docs]. | ||
|
||
## Safety | ||
|
||
This crate uses `#![forbid(unsafe_code)]` to ensure everything is implemented in | ||
100% safe Rust. | ||
|
||
## Minimum supported Rust version | ||
|
||
axum-handle-error-extract's MSRV is 1.54. | ||
|
||
## Getting Help | ||
|
||
You're also welcome to ask in the [Discord channel][chat] or open an [issue] | ||
with your question. | ||
|
||
## Contributing | ||
|
||
:balloon: Thanks for your help improving the project! We are so happy to have | ||
you! We have a [contributing guide][contributing] to help you get involved in the | ||
`axum` project. | ||
|
||
## License | ||
|
||
This project is licensed under the [MIT license][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. | ||
|
||
[docs]: https://docs.rs/axum-handle-error-extract | ||
[contributing]: /CONTRIBUTING.md | ||
[chat]: https://discord.gg/tokio | ||
[issue]: https://github.com/tokio-rs/axum/issues/new | ||
[license]: /axum/LICENSE |
Oops, something went wrong.