Review feedback: src-tauri/src/commands/models.rs was still naming load_whisper unconditionally, so a --no-default-features workspace build (kon-transcription without the whisper feature) would have compiled the transcription crate cleanly but failed in the kon crate as soon as it tried to resolve the load_whisper symbol. Adds a matching [features] section to src-tauri/Cargo.toml: - default = ["whisper"] - whisper = ["kon-transcription/whisper"] and declares the kon-transcription dep with default-features = false so the feature actually propagates rather than being forced-on by the child crate's default. Cfg-gates the load_whisper import in models.rs and adds a companion match arm that returns a runtime error when the feature is off, keeping the API shape intact. Verified with both cargo build -p kon and cargo build -p kon --no-default-features.
2.8 KiB
2.8 KiB