ensure_core_profiles() was unconditionally backfilling home/work/away into the in-memory config on every load, even when the user had already defined their own profiles (e.g. Home/Away/School). This showed up as duplicate/phantom lowercase entries in `breadcrumbs profile list`, and downstream in breadbar and bos-settings. Now the self-heal only fires when the profile set is completely empty (a genuinely fresh or corrupted config), never padding an existing customized set.
22 lines
455 B
TOML
22 lines
455 B
TOML
[package]
|
|
name = "breadcrumbs"
|
|
version = "2.1.5"
|
|
edition = "2021"
|
|
description = "Profile-aware Wi-Fi state machine with Tailscale handling and self-healing watch daemon"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "breadcrumbs"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4", features = ["derive"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
toml = "0.8"
|
|
serde_json = "1"
|
|
|
|
[profile.release]
|
|
opt-level = "s"
|
|
lto = true
|
|
strip = true
|
|
panic = "abort"
|