-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
49 lines (43 loc) · 1.38 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[package]
name = "rust-api"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [".", "entity"]
exclude = ["migration"]
[dependencies]
entity = { path = "entity" }
axum = { version = "0.6.7", features = ["tower-log"] }
tokio = { version = "1.17.0", features = ["full"] }
futures = { version = "0.3", features = ["async-await"] }
clap = "3"
dotenv = "0.15.0"
tracing = "0.1"
tracing-subscriber = "0.3"
anyhow = "1"
serde = { version = "1.0.136", features = ["derive"] }
validator = { version = "0.15", features = ["derive"] }
async-trait = "0.1"
http = "0.2"
http-body = "0.4.3"
serde_json = "1.0.81"
thiserror = "1"
lazy_static = "1.4"
hyper = { version = "0.14.24", features = ["client"] }
utoipa = { version = "3.0.3", features = ["axum_extras", "chrono", "uuid"] }
axum-macros = "0.3.4"
time = "0.3"
chrono = "0.4"
mockall = "0.11.1"
metrics = "0.18"
metrics-exporter-prometheus = "0.8"
env_logger = "0.10"
# tower crates for HTTP middleware
tower = { version = "0.4", features = ["timeout"] }
tower-http = { version = "0.3", features = ["trace", "cors"] }
sea-orm = { version = "0.11.0", features = [ "debug-print", "sqlx-postgres", "runtime-tokio-native-tls", "macros" ] }
sqlx = { version = "0.5", features = ["runtime-tokio-rustls", "postgres", "time"] }
[[bin]]
name = "rustapi"
path = "src/main.rs"