Skip to content

Commit 5de4840

Browse files
beariceclaude
andcommitted
Release version 2.0.0
- Bump version from 1.0.5 to 2.0.0 in Cargo.toml - Add comprehensive CHANGELOG.md documenting major architectural changes - Update dependencies including windows crate to 0.61.3 - Fix HWND parameter compatibility with windows-rs 0.61.3 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 08f0ad1 commit 5de4840

4 files changed

Lines changed: 130 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [2.0.0] - 2025-07-08
9+
10+
### Added
11+
- Dynamic menu system for extensible icon management
12+
- String-based icon system with automatic migration
13+
- Graceful thread shutdown functionality
14+
- About dialog with version and Git hash information
15+
- "Run on Start" option for automatic startup
16+
- Proper error handling for unsafe Windows API calls
17+
18+
### Changed
19+
- **BREAKING**: Migrated to windows-rs crate for improved Windows API integration
20+
- **BREAKING**: Refactored main.rs into modular structure
21+
- Improved code quality and error handling throughout the application
22+
- Updated error messages to use eprintln! instead of println!
23+
24+
### Fixed
25+
- Right-click context menu not showing in tray icon
26+
- Lifetime issues in App animation thread
27+
- CPU usage panic with proper error handling
28+
- Various compile errors and code formatting issues
29+
30+
### Dependencies
31+
- Updated trayicon from 0.1.3 to 0.2.0
32+
- Updated winreg from 0.10.1 to 0.55.0
33+
- Migrated from older Windows API bindings to windows-rs 0.58
34+
35+
## [1.0.5] - Previous Release
36+
37+
### Added
38+
- Initial stable release with animated cat and parrot icons
39+
- CPU usage monitoring with animation speed correlation
40+
- Windows theme detection (light/dark)
41+
- Registry integration for settings persistence
42+
- Tray icon with context menu

Cargo.lock

Lines changed: 85 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rust_cat"
3-
version = "1.0.5"
3+
version = "2.0.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/windows_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use windows::{
88
pub fn safe_message_box(message: &str, title: &str, flags: u32) -> std::result::Result<(), Box<dyn std::error::Error>> {
99
unsafe {
1010
let result = MessageBoxW(
11-
HWND::default(),
11+
Some(HWND::default()),
1212
&HSTRING::from(message),
1313
&HSTRING::from(title),
1414
MESSAGEBOX_STYLE(flags),
@@ -23,7 +23,7 @@ pub fn safe_message_box(message: &str, title: &str, flags: u32) -> std::result::
2323
pub fn safe_shell_execute(file: &str) -> std::result::Result<(), Box<dyn std::error::Error>> {
2424
unsafe {
2525
let ret = ShellExecuteW(
26-
HWND::default(),
26+
Some(HWND::default()),
2727
None,
2828
&HSTRING::from(file),
2929
None,

0 commit comments

Comments
 (0)