Looking better

This commit is contained in:
Javier Feliz 2025-09-05 21:22:36 -04:00
parent b5de72e9bc
commit 10c59c5412
3 changed files with 27 additions and 2 deletions

View File

@ -9,4 +9,7 @@ proc-macro = true
[dependencies]
proc-macro2 = "1.0"
syn = { version = "2.0", features = ["full"] }
quote = "1.0"
quote = "1.0"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_analyzer)'] }

View File

@ -213,6 +213,25 @@ impl PluginConfig {
#default_list_method
#filter_method
// Stub implementations to satisfy rust-analyzer
// These are only compiled when rust-analyzer is checking the code
#[cfg(rust_analyzer)]
fn init(&self) { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn name(&self) -> String { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn priority(&self) -> i32 { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn description(&self) -> Option<String> { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn prefix(&self) -> Option<String> { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn by_prefix_only(&self) -> bool { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn default_list(&self) -> Vec<Box<dyn waycast_core::LauncherListItem>> { unimplemented!("Generated by plugin! macro") }
#[cfg(rust_analyzer)]
fn filter(&self, _query: &str) -> Vec<Box<dyn waycast_core::LauncherListItem>> { unimplemented!("Generated by plugin! macro") }
}
}
}

View File

@ -10,4 +10,7 @@ directories = "6.0.0"
gio = "0.21.1"
glib = "0.21.1"
tokio = { version = "1.0", features = ["rt", "rt-multi-thread", "time", "macros", "sync"] }
walkdir = "2.5.0"
walkdir = "2.5.0"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_analyzer)'] }