-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework error handling example (#2382)
- Loading branch information
1 parent
6c276c3
commit c3db223
Showing
3 changed files
with
235 additions
and
160 deletions.
There are no files selected for viewing
155 changes: 0 additions & 155 deletions
155
examples/error-handling-and-dependency-injection/src/main.rs
This file was deleted.
Oops, something went wrong.
8 changes: 3 additions & 5 deletions
8
...dling-and-dependency-injection/Cargo.toml → examples/error-handling/Cargo.toml
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,15 +1,13 @@ | ||
[package] | ||
name = "example-error-handling-and-dependency-injection" | ||
name = "example-error-handling" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[dependencies] | ||
axum = { path = "../../axum" } | ||
axum = { path = "../../axum", features = ["macros"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
tokio = { version = "1.0", features = ["full"] } | ||
tower = { version = "0.4", features = ["util"] } | ||
tower-http = { version = "0.5", features = ["trace"] } | ||
tracing = "0.1" | ||
tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
uuid = { version = "1.0", features = ["v4", "serde"] } |
Oops, something went wrong.