-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
56 lines (50 loc) · 2.02 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 = "zero2prod"
version = "0.1.0"
authors = ["manuelvargastapia <[email protected]>"]
edition = "2018"
# We need a binary (main.rs) and a library (lib.rs, that holds the app itself)
# to be able to share code between folders
[lib]
path = "src/lib.rs"
# Not strictly required, but it gives us the full picture. We use [[bin]]
# because it's an array, as we can have multiple binaries
[[bin]]
path = "src/main.rs"
name = "zero2prod"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# We're using the beta release to get tokio 1.x.x. With this, we gain access
# to any tokio primitive
actix-web = "4.0.0-beta.4"
# We need the optional "derive" feature to use "serde"'s procedural macros:
# "#[derive(Serialize)]" and "#[derive(Deserialize)]"
serde = { version = "1.0.125", features = ["derive"]}
serde-aux = "2.2.0"
config = "0.11.0"
uuid = { version = "0.8.1", features = ["v4"] }
chrono = "0.4.19"
tracing = { version = "0.1.25", features = ["log"] }
tracing-subscriber = { version = "0.2.17", features = ["registry", "env-filter"] }
tracing-futures = "0.2.5"
tracing-bunyan-formatter = "0.2.0"
tracing-log = "0.1.2"
tracing-actix-web = "0.3.0-beta.2"
# Using table-like toml syntax to avoid a super-long line!
[dependencies.sqlx]
version = "0.5.1"
default-features = false
features = [
"runtime-actix-rustls", # use the "actix" runtime and "rustls" as TLS backend
"macros", # access to "sqlx::query!" and "sqlx::query_as!"
"postgres", # specific Postgress functionality
"uuid", # support for mapping SQL UUIDs to the Uuid type from the "uuid" crate
"chrono", # support for mapping SQL "timestamptz" to the "DateTime<T>" type from the "chrono" crate
"migrate", # same functions used by "sqlx-cli" to manage migrations
"offline" # use sqlx offline compile-time verification by creating a sqlx-data.json file. It requires running "cargo sqlx prepare"
]
[dev-dependencies]
actix-rt = "2.1.0"
reqwest = "0.11.2"
tokio = "1.4.0"
lazy_static = "1.4.0"