-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
51 lines (40 loc) · 1.46 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
[package]
name = "echo-rs"
version = "0.3.0"
description = "A simple HTTP echo server"
license = "AGPL-3.0-or-later"
edition = "2021"
authors = ["Mark S. <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/the-wondersmith/echo-rs"
repository = "https://github.com/the-wondersmith/echo-rs"
# documentation = "https://docs.rs/echo-rs/latest/echo_rs/"
keywords = ["kubernetes", "demo", "axum", "echo"]
categories = ["web-programming::http-server", "development-tools::testing"]
[profile.dev]
debug = 2
opt-level = 0
incremental = true
codegen-units = 512
[profile.release]
lto = true # Enable Link Time Optimization to remove dead code reduce binary size
debug = 0
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
panic = "abort" # Don't include the rustc's unwinding code in release builds
codegen-units = 1 # Allow for maximum size reduction optimizations
incremental = true
[dependencies]
log = "^0.4"
anyhow = "^1"
tracing = "^0.1"
metrics = "^0.21"
serde_json = "^1"
regex-lite = "^0.1"
metrics-exporter-prometheus = "^0.12"
serde = { version = "^1", features = ["derive"]}
tokio = { version = "^1.25", features = ["full"] }
axum-server = { version = "^0.5", features = ["tls-rustls"] }
tracing-subscriber = { version = "^0.3", features = ["env-filter"] }
clap = { version = "^4.3", features = ["env", "derive", "default"] }
axum = { version = "^0.6", features = ["http2", "macros", "headers", "tracing"] }