From 11d03652f31a63b8b610fcc71b16c7a7bcf3fcc6 Mon Sep 17 00:00:00 2001 From: candifloss Date: Wed, 12 Aug 2026 10:48:45 +0530 Subject: [PATCH] Update dependencies --- alarm_widg/Cargo.toml | 12 ++++----- alarm_widg_config/Cargo.toml | 8 +++--- extra/alarm-widg.service | 47 ++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 extra/alarm-widg.service diff --git a/alarm_widg/Cargo.toml b/alarm_widg/Cargo.toml index 7fec542..3363609 100644 --- a/alarm_widg/Cargo.toml +++ b/alarm_widg/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "alarm_widg" -version = "0.1.0" +version = "0.1.1" edition = "2024" [dependencies] alarm_widg_config = {path = "../alarm_widg_config"} -chrono = "0.4.44" +chrono = "0.4.45" dirs = "6.0.0" -i-slint-backend-winit = "1.15.1" -slint = "1.15.1" -toml = "1.0.3" +i-slint-backend-winit = "1.17.1" +slint = "1.17.1" +toml = "1.1.4" [build-dependencies] -slint-build = "1.15.1" +slint-build = "1.17.1" diff --git a/alarm_widg_config/Cargo.toml b/alarm_widg_config/Cargo.toml index 4d06a23..ab3ff17 100644 --- a/alarm_widg_config/Cargo.toml +++ b/alarm_widg_config/Cargo.toml @@ -4,8 +4,8 @@ version = "0.1.0" edition = "2024" [dependencies] -chrono = { version = "0.4.44", features = ["serde"] } +chrono = { version = "0.4.45", features = ["serde"] } dirs = "6.0.0" -serde = { version = "1.0.228", features = ["derive"] } -thiserror = "2.0.18" -toml = "1.0.3" +serde = { version = "1.0.229", features = ["derive"] } +thiserror = "2.0.20" +toml = "1.1.4" diff --git a/extra/alarm-widg.service b/extra/alarm-widg.service new file mode 100644 index 0000000..a486e3f --- /dev/null +++ b/extra/alarm-widg.service @@ -0,0 +1,47 @@ +[Unit] +# Human readable name shown by systemd. +Description=CandyWidgets Alarm Widget Scheduler + +# Link to the project's documentation or source repository. +Documentation=https://git.candifloss.cc/candifloss/alarm_app.git + + +[Service] +# The process runs in the foreground and is managed directly by systemd. +Type=simple + +# Start the alarm_widg executable. +# systemd resolves this using the user's executable search path. +ExecStart=alarm_widg + +# Restart the service automatically when the program exits unexpectedly. +Restart=on-failure + +# Wait three seconds before attempting a restart. +RestartSec=3 + +# Enable Rust backtraces if the application panics. +Environment=RUST_BACKTRACE=1 + +# Use a consistent identifier for messages from this service in the journal. +SyslogIdentifier=alarm_widg + +# Prevent the service from gaining additional privileges. +NoNewPrivileges=true + +# Give the service its own private /tmp directory. +PrivateTmp=true + +# Make the system filesystem read-only to the service. +ProtectSystem=strict + +# Make the user's home directory read-only to the service. +ProtectHome=read-only + +# Allow the application to write to its configuration directory. +ReadWritePaths=%h/.config/candywidgets + + +[Install] +# Start the service automatically when the user's default systemd target starts. +WantedBy=default.target \ No newline at end of file