[feat] implement backend abstraction, dynamic backend selection, and GPU feature integration

This commit is contained in:
2025-08-13 11:36:09 +02:00
parent 5ace0a0d7e
commit 3344a3b18c
22 changed files with 2746 additions and 1004 deletions

View File

@@ -0,0 +1,13 @@
// SPDX-License-Identifier: MIT
// Move original build.rs behavior into core crate
fn main() {
// Only run special build steps when gpu-vulkan feature is enabled.
let vulkan_enabled = std::env::var("CARGO_FEATURE_GPU_VULKAN").is_ok();
if !vulkan_enabled {
return;
}
println!("cargo:rerun-if-changed=extern/whisper.cpp");
println!(
"cargo:warning=Building with gpu-vulkan: ensure Vulkan SDK/loader are installed. Future versions will compile whisper.cpp via CMake."
);
}