@bobfrankston/msger 0.1.95 → 0.1.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/TODO.md CHANGED
@@ -1,6 +1,28 @@
1
1
  # msger TODO List
2
2
 
3
- ## Recent Session (2025-11-12) - WSL Linux Support Fixed
3
+ ## Recent Session (2025-11-12) - Warning Cleanup
4
+
5
+ **Status:** ✅ COMPLETED - Version 0.1.95
6
+
7
+ ### What Was Fixed:
8
+
9
+ 1. **Rust Compiler Warnings**
10
+ - Fixed "unused variable: webview" warning on Linux
11
+ - Fixed "variable does not need to be mutable" warning
12
+ - Fixed "unused Result that must be used" warning
13
+ - Added `#[cfg_attr(not(windows), allow(unused_variables))]` for webview (only used on Windows for About menu)
14
+ - Changed `let mut webview` to `let webview`
15
+ - Changed `SetWindowSubclass(...).ok();` to `let _ = SetWindowSubclass(...).ok();`
16
+
17
+ ### Testing:
18
+ - ✅ Windows build: Zero warnings
19
+ - ✅ Linux build: Zero warnings
20
+ - ✅ Windows runtime: Working perfectly
21
+ - ✅ WSL runtime: Working perfectly
22
+
23
+ ---
24
+
25
+ ## Session (2025-11-12) - WSL Linux Support Fixed
4
26
 
5
27
  **Status:** ✅ COMPLETED - Version 0.1.94
6
28
 
Binary file
Binary file
@@ -389,7 +389,7 @@ fn main() {
389
389
  AppendMenuW(hmenu, MF_STRING, IDM_ABOUT as usize, PCWSTR(about_text.as_ptr())).ok();
390
390
  }
391
391
  // Install window subclass to intercept WM_SYSCOMMAND
392
- SetWindowSubclass(hwnd, Some(subclass_proc), 1, 0).ok();
392
+ let _ = SetWindowSubclass(hwnd, Some(subclass_proc), 1, 0).ok();
393
393
  }
394
394
 
395
395
  // Generate HTML
@@ -446,7 +446,9 @@ fn main() {
446
446
  #[cfg(target_os = "linux")]
447
447
  let vbox = window.default_vbox().expect("Failed to get GTK vbox");
448
448
 
449
- let mut webview = if let Some(ref url) = options.url {
449
+ // webview is only used on Windows for About menu functionality
450
+ #[cfg_attr(not(windows), allow(unused_variables))]
451
+ let webview = if let Some(ref url) = options.url {
450
452
  // Load URL with msger API injected
451
453
  let builder = WebViewBuilder::with_web_context(&mut web_context)
452
454
  .with_url(url)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.95",
3
+ "version": "0.1.97",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",