oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

Removed anyhow as a dep, and removed legacy template file

Commit
1a6856923654634d12436ca7001ec95cb66c09bd
Parent
ccf0925
Author
tonybtw <tonybtw@tonybtw.com>
Date
2025-11-18 16:13:59

Diff

diff --git a/Cargo.lock b/Cargo.lock
index a7e04ac..da5edf7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,12 +11,6 @@ dependencies = [
  "libc",
 ]
 
-[[package]]
-name = "anyhow"
-version = "1.0.100"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
-
 [[package]]
 name = "autocfg"
 version = "1.5.0"
@@ -299,7 +293,6 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
 name = "oxwm"
 version = "0.7.2"
 dependencies = [
- "anyhow",
  "chrono",
  "dirs",
  "mlua",
diff --git a/Cargo.toml b/Cargo.toml
index 7f9c9b4..2d398ba 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,6 @@ path = "src/bin/main.rs"
 [dependencies]
 x11 = { version = "2.21", features = ["xlib", "xft"] }
 x11rb = { version = "0.13", features = ["cursor", "xinerama"] }
-anyhow = "1"
 chrono = "0.4"
 dirs = "5.0"
 serde = { version = "1.0", features = ["derive"] }
diff --git a/templates/main.rs b/templates/main.rs
deleted file mode 100644
index 97c27c0..0000000
--- a/templates/main.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-mod config;
-
-use anyhow::Result;
-
-fn main() -> Result<()> {
-    let cfg = config::build_config();
-
-    let args: Vec<String> = std::env::args().collect();
-    let mut wm = oxwm::window_manager::WindowManager::new(cfg)?;
-    let should_restart = wm.run()?;
-
-    drop(wm);
-
-    if should_restart {
-        use std::os::unix::process::CommandExt;
-        let err = std::process::Command::new(&args[0]).args(&args[1..]).exec();
-        eprintln!("Failed to restart: {}", err);
-    }
-
-    Ok(())
-}