Commit graph

13 commits

Author SHA1 Message Date
Ashley Wulber
e10459fb37 wip rebase updates 2026-03-04 12:04:32 -05:00
Ian Douglas Scott
bb6f6e9ac8 improv(cosmic-config): Remove unneeded trait bounds for subscriptions
It looks like these functions where previously implemented in a
different way that required these traits, but now it uses
`Subscription::run_with_id`, the `id` only needs to be `Hash + 'static`.
2025-11-10 11:17:53 -08:00
Cheong Lau
a27bb5e05d chore: apply clippy suggestions 2025-10-05 04:40:51 +02:00
Vukašin Vojinović
ea349aca82 chore: use std::syncLazyLock
Also migrates workspace members to Rust 2024.
2025-09-03 21:54:46 +02:00
Ashley Wulber
7555d9dfd1 cargo fmt 2025-06-25 19:37:52 -04:00
Jeremy Soller
a85b369399 Fix config watching 2025-06-23 11:20:48 -06:00
Michael Aaron Murphy
1af2f4ffe5
chore: format 2025-06-23 17:50:28 +02:00
Michael Aaron Murphy
90ad3e9e1b
improv(cosmic-config): use notifier debouncer on inotify watchers 2025-06-23 17:13:58 +02:00
Michael Aaron Murphy
8cf372c9b9
perf: inline public getters/setters, and use non-generic inner functions
To reduce compile-times and avoid some overhead to binary size, this will modify some of our
generic functions to use non-generic inner functions where possible. The inner functions are
marked carefully with `#[inline(never)]` to prevent being inlined by LLVM at their callsites

While looking for generic functions to optimize, I have also taken the opportunity to annotate
public non-generic getters and setters with `#[inline]` to ensure that LLVM will inline them
across crate boundaries. By default, only generic functions are automatically inlined, and
only when enabling fat LTO are constant functions reliably inlined across crate boundaries.
2025-03-21 13:31:34 +01:00
Ashley Wulber
0491c4baaa libcosmic updates 2024-10-18 14:04:39 -04:00
Ashley Wulber
6a97435263 fix(cosmic-config): attempt to reconnect to the settings daemon 2024-05-12 21:27:22 +02:00
Ashley Wulber
efe4ce2f5b refactor: config improvements 2024-01-18 20:19:32 -07:00
Ashley Wulber
06c33dcf06 refactor: optional config subscriptions using dbus 2024-01-02 15:12:14 +01:00