mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
Introduces a proper feature flag hierarchy for AI-related dependencies, allowing lite builds without heavy speech-to-text dependencies. Feature hierarchy: - `ai` - umbrella feature for all AI capabilities - `speech-to-text` - transcription capability (requires ffmpeg + whisper) - `whisper` - Whisper speech recognition engine (internal) - `ffmpeg` - audio/video processing (existing) Changes: - Make whisper-rs, hound, rubato optional deps behind `whisper` feature - Add `speech-to-text` feature that requires both ffmpeg and whisper - Add `ai` umbrella feature that enables all AI features - Update all cfg guards to use semantic `#[cfg(feature = "speech-to-text")]` - Expose new features in apps/server and apps/cli - Update release workflow to include `ai` feature (maintains existing behavior) This enables: - Mobile builds without STT (smaller binary, already using default-features=false) - Desktop "lite" builds for users who want minimal size - Future AI features can be added under the `ai` umbrella Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>