-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
48 lines (40 loc) · 1.51 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
[package]
name = "fan_remote"
version = "0.1.0"
authors = ["Stephan Sokolow <http://www.ssokolow.com/ContactMe>"]
edition = "2021"
license = "MIT OR Apache-2.0"
[dependencies]
actix-web = { version = "4.9.0", default-features = false }
gumdrop = "0.8.1"
thiserror = "2.0.3"
notify-rust = { version = "4.11.3", optional = true }
listenfd = "1.0.1"
[profile.release]
lto = true
codegen-units = 1
# Remove debug symbols from precompiled std to save space
# and speed up linking time.
# Backtraces will still work as long as you don't strip="symbols"/strip=true
#
# Source: https://davidlattimore.github.io/working-on-rust-iteration-time.html
strip="debuginfo"
# -- Combine reasonable rebuild time and reasonable perf in debug builds --
# (Thanks to https://www.reddit.com/r/rust/comments/gvrgca/)
# See also https://doc.rust-lang.org/cargo/reference/profiles.html#overrides
[profile.dev.package."*"]
# Build dependencies with full release optimizations in debug builds.
# (Since they won't change often and probably do most of the heavy lifting)
opt-level = 3
[profile.dev]
# Build the project itself with just enough optimization to smooth out the
# most egregious of the abstractions which are only zero-cost when optimized
opt-level = 1
# Disable building debug info and strip std debug symbols to speed up linking.
# Backtraces will still work as long as you don't strip="symbols"/strip=true
#
# Source: https://davidlattimore.github.io/working-on-rust-iteration-time.html
debug = 0
strip="debuginfo"
[features]
default = ["notify-rust"]