generated from dman-os/template_rust_dylink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
55 lines (46 loc) · 1.17 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
[package]
name = "template_rust_web_api"
description = "Opinionated template repository for an HTTP API."
version = "0.1.0"
edition = "2021"
default-run = "web"
[[bin]]
name = "web"
test = false
bench = false
[[bin]]
name = "print_oas"
test = false
bench = false
[workspace]
members = ["crates/*"]
[features]
default = ["dylink"]
[dependencies]
deps = { path = "crates/deps" }
dylink = { path = "crates/dylink", optional = true }
shadow-rs = "0.16.3"
# the following contain macros that don't like being re-exported
validator = { version = "0.16.0", features = ["derive"] }
sqlx = { version = "0.6.1", features = [
"postgres",
"runtime-tokio-rustls",
"time",
"uuid",
"macros",
"json",
"migrate",
"offline"
] }
[profile.dev]
# debug = false
# builds dependeinces with release optimizations
[profile.dev.package."*"]
# opt-level = 3
[patch.crates-io]
[build-dependencies]
shadow-rs = "0.16.3"
# utoipa = { git = "https://github.com/juhaku/utoipa", rev = "6431c28" }
# utoipa-swagger-ui = { git = "https://github.com/juhaku/utoipa", rev = "6431c28" }
# utoipa = { path = "../utoipa" }
# utoipa-swagger-ui = { path = "../utoipa" }