-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
56 lines (45 loc) · 2.12 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
50
51
52
53
54
55
56
[package]
name = "app-a"
version = "0.1.0"
edition = "2021"
##########################################################################################################################################
[dependencies]
clap = { version = "4.3.5", features = ["derive", "env"] }
config = {version="0.13.1", features = ["yaml"]}
thiserror= "1.0.40"
tokio = { version = "1.28.2", features = ["full"] }
serde = "1.0.164"
serde_json = "1.0.97"
serde_derive = "1.0.164"
log = { version = "0.4.19", features = ["kv_unstable_serde"], default-features = false }
structured-logger="1.0.1"
async-trait = "0.1.68"
tonic = "0.9.2"
tonic-reflection = "0.9.2"
prost = "0.11.9"
prost-types = "0.11.9"
futures-util = "0.3.28"
sqlx = { version="0.6.3", features = ["runtime-tokio-rustls", "postgres","macros", "chrono", "uuid", "time"]}
sqlx-migrate = { version = "0.6.0" , features = ["cli","postgres"] }
chrono = { version= "0.4.26", features = ["serde"] }
strum = "0.25"
strum_macros = "0.25"
uuid = {version = "1.3.4", features = ["serde"]}
[build-dependencies]
tonic-build = "0.9.2"
##########################################################################################################################################
[dev-dependencies]
mockall = "0.11.4"
##########################################################################################################################################
[package.metadata.scripts]
dockerize="docker build . -t app-a:latest"
# Run db specific docker containers only postgres and pgweb
db_docker_up="docker compose --profile=db up -d"
db_docker_down="docker compose --profile=db down"
# Run minimal docker network includes application, postgres only.
docker_up_minimal="docker compose --profile minimal up -d"
docker_down_minimal="docker compose --profile minimal down"
# Run full docker network includes application, postgres and supporting utilities
full_docker_up="docker compose --profile=db --profile=app up --build -d"
full_docker_down="docker compose --profile=db --profile=app down"
db_migrate="sqlx migrate run --source './db/migrations' --database-url 'postgres://postgres:postgres@localhost/postgres?sslmode=disable'"