refactor: Isolate conditional compilation of magic_file plugin import
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
@@ -29,12 +29,14 @@ use filter_plugin::{
|
|||||||
// Import all meta plugins to ensure they register themselves
|
// Import all meta plugins to ensure they register themselves
|
||||||
#[allow(unused_imports)]
|
#[allow(unused_imports)]
|
||||||
use meta_plugin::{
|
use meta_plugin::{
|
||||||
#[cfg(feature = "magic")]
|
|
||||||
magic_file,
|
|
||||||
cwd, text, user, shell, shell_pid, keep_pid, digest,
|
cwd, text, user, shell, shell_pid, keep_pid, digest,
|
||||||
read_time, read_rate, hostname, exec, env
|
read_time, read_rate, hostname, exec, env
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(feature = "magic")]
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
use meta_plugin::magic_file;
|
||||||
|
|
||||||
// Initialize plugins at library load time
|
// Initialize plugins at library load time
|
||||||
pub fn init_plugins() {
|
pub fn init_plugins() {
|
||||||
// This will be expanded in Step 3 implementation
|
// This will be expanded in Step 3 implementation
|
||||||
|
|||||||
Reference in New Issue
Block a user