-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
31 lines (28 loc) · 1.5 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
[package]
name = "sflow_exporter"
version = "0.1.0"
edition = "2021"
authors = ["Marcel <https://m4rc3l.de>"]
description = "Serving sflow traffic metrics as Prometheus endpoints."
[dependencies]
clap = { version = "4.5", default-features = false, features = ["std", "color", "help", "usage", "error-context", "suggestions", "derive", "env"] }
tokio = { version = "1.38", default-features = false, features = ["macros", "rt-multi-thread", "net", "signal", "fs", "sync"] }
tracing = { version = "0.1", default-features = false, features = ["release_max_level_info"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "ansi"] }
axum = { version = "0.7", default-features = false, features = ["tokio", "http1"] }
inotify = { version = "0.10", default-features = false, features = ["stream"] }
serde = { version = "1.0", default-features = false, features = ["derive"] }
binrw = { version = "0.14", default-features = false, features = ["std"] }
anyhow = { version = "1.0", default-features = false, features = ["std"] }
futures-util = { version = "0.3", default-features = false }
prometheus = { version = "0.13", default-features = false }
serde_yaml = { version = "0.9", default-features = false }
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
# by overriding our dependencies' compilation settings, we can further optimize for size
# https://docs.rust-embedded.org/book/unsorted/speed-vs-size.html#optimizing-dependencies
[profile.release.package."*"]
codegen-units = 1