25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

Cargo.toml 1.2 KiB

2 hafta önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [package]
  2. name = "axum-api-template"
  3. version = "0.1.0"
  4. edition = "2021"
  5. rust-version = "1.75"
  6. [[bin]]
  7. name = "axum-api-template"
  8. path = "src/main.rs"
  9. [dependencies]
  10. # Web framework
  11. axum = { version = "0.7", features = ["macros"] }
  12. axum-extra = { version = "0.9", features = ["typed-header"] }
  13. tower = { version = "0.4", features = ["full"] }
  14. tower-http = { version = "0.5", features = ["cors", "trace", "request-id", "normalize-path"] }
  15. # Async runtime
  16. tokio = { version = "1", features = ["full"] }
  17. # Serialization
  18. serde = { version = "1", features = ["derive"] }
  19. serde_json = "1"
  20. # Configuration
  21. config = "0.14"
  22. dotenvy = "0.15"
  23. # Error handling
  24. thiserror = "1"
  25. anyhow = "1"
  26. # Logging / tracing
  27. tracing = "0.1"
  28. tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
  29. # Validation
  30. validator = { version = "0.18", features = ["derive"] }
  31. # UUIDs
  32. uuid = { version = "1", features = ["v4", "serde"] }
  33. # Time
  34. chrono = { version = "0.4", features = ["serde"] }
  35. # HTTP status codes (re-exported via axum, listed explicitly for clarity)
  36. http = "1"
  37. [dev-dependencies]
  38. axum-test = "14"
  39. tokio = { version = "1", features = ["full"] }
  40. serde_json = "1"
  41. [profile.release]
  42. opt-level = 3
  43. lto = true
  44. codegen-units = 1
  45. strip = true