-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (61 loc) · 1.67 KB
/
Cargo.toml
File metadata and controls
76 lines (61 loc) · 1.67 KB
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
65
66
67
68
69
70
71
72
73
74
75
[package]
name = "syslog-server"
version = "0.3.0"
authors = ["Elias Mörz <elias.moerz@mail.de>"]
edition = "2024"
description = "A small automation project to set up a syslog server, which also serves as a playground for Rust."
readme = "README.md"
homepage = "https://github.com/NachtsternBuild/Syslog-Server"
repository = "https://github.com/NachtsternBuild/Syslog-Server"
license = "GPL-3.0"
keywords = ["cli", "tool"]
categories = ["command-line-utilities"]
include = [
"src/**",
"LICENSE*",
"README.md"
]
[[bin]]
name = "syslog-server"
path = "src/main.rs"
[dependencies]
# ip address settings
local-ip-address = "0.6"
# working with directories
directories = "6.0"
# cli parsing
clap = { version = "4.5", features = ["derive"] }
# libc
libc = "0.2"
# logging
log = "0.4"
env_logger = "0.11"
# better errors
anyhow = "1.0"
# reading toml config files
toml = "0.8"
[features]
default = ["cli"]
cli = []
# example opt features
json = ["serde", "serde_json"]
[dependencies.serde]
version = "1.0"
optional = true
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
optional = true
[profile.release]
opt-level = "z" # Optimized for the smallest possible file size
lto = true # Link Time Optimization (removes unused code across crates)
codegen-units = 1 # Prevents parallel compilation, but enables better optimization
panic = "abort" # Removes the code for stack unwinding (saves a lot of space)
strip = true
[package.metadata.deb]
maintainer = "Elias Mörz <elias.moerz@mail.de>"
copyright = "2026, Elias Mörz <elias.moerz@mail.de>"
license-file = ["LICENSE", "0"] # path to license and prio
depends = "$auto"
section = "utils"
priority = "optional"