mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-18 14:06:37 +00:00
3e553eaf60
* Add chapter 4 code. * Add logger middleware. * Add env_logger. * Instrumented. * Test logs. * Introduce instrument. * Refactor handler. * Use TracingLogger. * Update. * Fix linter error.
36 lines
1 KiB
TOML
36 lines
1 KiB
TOML
[package]
|
|
name = "chapter04"
|
|
version = "0.1.0"
|
|
authors = ["LukeMathWalker <rust@lpalmieri.com>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "chapter04"
|
|
|
|
[dependencies]
|
|
actix-web = "2.0.0"
|
|
actix-rt = "1.1.1"
|
|
tokio = "0.2.22"
|
|
serde = "1.0.115"
|
|
config = { version = "0.10.1", default-features = false, features = ["yaml"] }
|
|
sqlx = { version = "0.4.0-beta.1", default-features = false, features = [ "runtime-tokio", "macros", "postgres", "uuid", "chrono", "migrate"] }
|
|
anyhow = "1.0.32"
|
|
uuid = { version = "0.8.1", features = ["v4"] }
|
|
chrono = "0.4.15"
|
|
env_logger = "0.7.1"
|
|
log = "0.4.11"
|
|
tracing = "0.1.19"
|
|
tracing-futures = "0.2.4"
|
|
tracing-subscriber = { version = "0.2.12", features = ["registry", "env-filter"] }
|
|
tracing-bunyan-formatter = "0.1.6"
|
|
tracing-log = "0.1.1"
|
|
tracing-actix-web = "0.1.1"
|
|
|
|
[dev-dependencies]
|
|
reqwest = { version = "0.10.7", features = ["json"] }
|
|
lazy_static = "1.4.0"
|