Removed anyhow as a dep, and removed legacy template file
Browse files
+0 −7 Cargo.lock
| @@ -11,12 +11,6 @@ dependencies = [ | |||
| 11 | "libc", | 11 | "libc", |
| 12 | ] | 12 | ] |
| 13 | 13 | ||
| 14 | -[[package]] | ||
| 15 | -name = "anyhow" | ||
| 16 | -version = "1.0.100" | ||
| 17 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 18 | -checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" | ||
| 19 | - | ||
| 20 | [[package]] | 14 | [[package]] |
| 21 | name = "autocfg" | 15 | name = "autocfg" |
| 22 | version = "1.5.0" | 16 | version = "1.5.0" |
| @@ -299,7 +293,6 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" | |||
| 299 | name = "oxwm" | 293 | name = "oxwm" |
| 300 | version = "0.7.2" | 294 | version = "0.7.2" |
| 301 | dependencies = [ | 295 | dependencies = [ |
| 302 | - "anyhow", | ||
| 303 | "chrono", | 296 | "chrono", |
| 304 | "dirs", | 297 | "dirs", |
| 305 | "mlua", | 298 | "mlua", |
+0 −1 Cargo.toml
| @@ -14,7 +14,6 @@ path = "src/bin/main.rs" | |||
| 14 | [dependencies] | 14 | [dependencies] |
| 15 | x11 = { version = "2.21", features = ["xlib", "xft"] } | 15 | x11 = { version = "2.21", features = ["xlib", "xft"] } |
| 16 | x11rb = { version = "0.13", features = ["cursor", "xinerama"] } | 16 | x11rb = { version = "0.13", features = ["cursor", "xinerama"] } |
| 17 | -anyhow = "1" | ||
| 18 | chrono = "0.4" | 17 | chrono = "0.4" |
| 19 | dirs = "5.0" | 18 | dirs = "5.0" |
| 20 | serde = { version = "1.0", features = ["derive"] } | 19 | serde = { version = "1.0", features = ["derive"] } |
+0 −21 templates/main.rs deleted file mode 100644
| @@ -1,21 +0,0 @@ | |||
| 1 | -mod config; | ||
| 2 | - | ||
| 3 | -use anyhow::Result; | ||
| 4 | - | ||
| 5 | -fn main() -> Result<()> { | ||
| 6 | - let cfg = config::build_config(); | ||
| 7 | - | ||
| 8 | - let args: Vec<String> = std::env::args().collect(); | ||
| 9 | - let mut wm = oxwm::window_manager::WindowManager::new(cfg)?; | ||
| 10 | - let should_restart = wm.run()?; | ||
| 11 | - | ||
| 12 | - drop(wm); | ||
| 13 | - | ||
| 14 | - if should_restart { | ||
| 15 | - use std::os::unix::process::CommandExt; | ||
| 16 | - let err = std::process::Command::new(&args[0]).args(&args[1..]).exec(); | ||
| 17 | - eprintln!("Failed to restart: {}", err); | ||
| 18 | - } | ||
| 19 | - | ||
| 20 | - Ok(()) | ||
| 21 | -} | ||