use inferno::{backends::BackendType, config::Config};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("๐งช Testing Inferno Core Components...");
println!("โ
Testing Config system...");
let config_result = Config::load();
match config_result {
Ok(_) => println!(" โ Config system working"),
Err(e) => println!(" โ Config system: {}", e),
}
println!("โ
Testing Backend type system...");
let test_paths = vec![
std::path::PathBuf::from("test.gguf"),
std::path::PathBuf::from("test.onnx"),
std::path::PathBuf::from("test.unknown"),
];
for path in test_paths {
let backend_type = BackendType::from_model_path(&path);
match backend_type {
Some(bt) => println!(" โ {} -> {:?}", path.display(), bt),
None => println!(" โ {} -> None (expected)", path.display()),
}
}
println!("โ
Testing available backends...");
#[cfg(feature = "gguf")]
println!(" โ GGUF backend available");
#[cfg(not(feature = "gguf"))]
println!(" โ GGUF backend disabled (expected with --no-default-features)");
#[cfg(feature = "onnx")]
println!(" โ ONNX backend available");
#[cfg(not(feature = "onnx"))]
println!(" โ ONNX backend disabled (expected with --no-default-features)");
println!("๐ Core component validation complete!");
println!("โ
All conditional compilation fixes working correctly!");
Ok(())
}