chore: bootstrap rust service

This commit is contained in:
2026-06-13 06:05:45 +02:00
commit b84de88585
7 changed files with 2295 additions and 0 deletions

36
Cargo.toml Normal file
View File

@@ -0,0 +1,36 @@
[package]
name = "pokedex-api"
version = "0.1.0"
edition = "2024"
license = "MIT"
publish = false
[dependencies]
axum = { version = "0.8", features = ["json", "macros"] }
opentelemetry = "0.31"
opentelemetry-prometheus-text-exporter = "0.2"
opentelemetry_sdk = { version = "0.31", features = ["metrics"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal"] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6", features = ["request-id", "trace"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
uuid = { version = "1", features = ["v4"] }
[dev-dependencies]
http-body-util = "0.1"
wiremock = "0.6"
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
cargo = { level = "deny", priority = -1 }
multiple_crate_versions = { level = "allow", priority = 1 }