-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
64 lines (54 loc) · 2.04 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
57
58
59
60
61
62
63
64
[workspace]
resolver = "2"
members = [
"crates/*",
"examples/*"
]
[workspace.package]
edition = "2021"
rust-version = "1.82.0"
readme = "README.md"
repository = "https://github.com/marvin-hansen/buildutils"
homepage = "https://github.com/marvin-hansen/buildutils"
authors = ["Marvin Hansen <[email protected]>"]
categories = ["development-tools::build-utils"]
license = "MIT"
# Linting with clippy
[workspace.lints.clippy]
all = "warn"
# Linting strict mode
[workspace.lints.rust]
# Warnings
deprecated-safe = "warn"
deprecated_safe_2024 = "warn"
[workspace.dependencies]
# ==============
# Internal Aliases
# ==============
docker_utils = { path = "crates/docker_utils", version = "0.2" }
service_utils = { path = "crates/service_utils", version = "0.1" }
wait_utils = { path = "crates/wait_utils", version = "0.1" }
service_example = { path = "examples/service_example" }
# ==============
# External crates
# ==============
bon = {version = "2.3", default-features = false}
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json", "gzip"] }
serde = { version = "1.0",features = ["derive"]}
tokio = { version = "1", default-features = false, features = ["macros", "net", "rt-multi-thread", "signal", "time"] }
tonic = { version = "0.12.1", features = ["transport"] }
tonic-health = { version = "0.12.3", default-features = false, features = ["transport"] }
warp = {version = "0.3"}
# Optimize all crates
[profile.release]
opt-level = 3
strip = true # Automatically strip debug symbols from the binary
lto = true # Enable Link Time Optimization (LTO)
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization
# There's a Cargo feature named profile-overrides
# that lets you override the optimization level of dependencies.
# https://docs.rust-embedded.org/book/unsorted/speed-vs-size.html
[profile.release.package."*"]
opt-level = 3
strip = 'debuginfo' # Automatically strip debug infos from the binary to reduce size
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization