-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): use atomic writes for safer configuration writing
- Replaced `fs::write` with `atomicwrites` for atomic file writes, ensuring files are either fully written or not written at all. - Improved error handling and directory creation logic in `src/config.rs`. - Bumped package version to `1.1.0`. - Added `atomicwrites` as a new dependency in `Cargo.toml`. - Updated Nix build configuration (`default.nix` and `flake.lock`) to reflect new dependencies. These changes improve the reliability of file operations, preventing partial writes or data corruption in case of failures. This aligns with what is used by libcosmic applications to write configurations
- Loading branch information
1 parent
75eda93
commit 12e48f4
Showing
5 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters