fix: resolve all compilation errors in Rust/Tauri backend#37
Merged
superninja-app[bot] merged 2 commits intomainfrom Mar 9, 2026
Merged
fix: resolve all compilation errors in Rust/Tauri backend#37superninja-app[bot] merged 2 commits intomainfrom
superninja-app[bot] merged 2 commits intomainfrom
Conversation
added 2 commits
March 9, 2026 20:19
- Add missing Serialize/Deserialize derives to types used in IPC - Add missing methods to engines (CompositionEngine, TipEcosystemEngine, SponsorMarketplaceEngine, TelemetryEngine, PerformanceEngine) - Fix type mismatches (Result wrapping, Option handling) - Fix lifetime parameters in async Tauri commands - Fix MutexGuard held across await points in analytics commands - Fix apply_for_sponsorship to construct SponsorshipApplication struct - Add can_undo/can_redo fields to UndoRedoInfo - Fix engine initialization (unwrap Result types with expect) - Fix fmt import conflict in logging.rs - Fix plugin_metadata macro import in cli.rs - Add From<PluginError> impl for CliError - Fix Option<f32> vs f32 type mismatch in profiler.rs - Fix String vs &str issues in cli.rs plugin manager calls - Add Default derive to RealTimeAnalytics Project now compiles successfully with cargo check (warnings only).
- Remove unused imports (HashMap, Arc, Mutex, State, etc.) across 15+ files - Prefix unused variables with underscore where appropriate - Add #![allow(dead_code)] to lib.rs for functions used only from binary - Make StreamConfig and UserProfile structs public in cli.rs - Remove unused tracing macro imports from logging.rs - Apply cargo fix auto-suggestions for remaining unused variables Project now compiles with 0 errors and 0 warnings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes all compilation errors in the V-Streaming Rust/Tauri backend, bringing the project from hundreds of errors down to a clean compile.
Changes Made
Missing Serialize/Deserialize Derives
Serialize/Deserializederives to types in:composition.rs,vtuber.rs,ui.rs,onboarding.rs,plugin.rs,gpu.rs,capture.rs,audio.rs, and othersMissing Engine Methods
update_goal,update_rewardget_sponsorshipget_error_reports,get_recent_error_reports,acknowledge_errordelete_profileType Mismatches & Return Types
Ok()where functions expectedResult<T, String>but methods returnedTdirectly.map(|_| ())for functions returningResult<(), String>when engine methods returnResult<T, String>.cloned()calls onOption<T>typesOption<f32>vsf32type mismatch in profiler.rsAsync/Lifetime Fixes
'_totauri::State<'_, AppState>in async analytics functionsMutexGuardheld across.awaitpoints (notSend-safe)Struct & Import Fixes
can_undo/can_redofields toUndoRedoInfoacknowledgedfield toErrorReportfmtimport conflict inlogging.rsplugin_metadatamacro import incli.rsFrom<PluginError>impl forCliErrorStringvs&strissues incli.rsEngine Initialization
.expect()toVtuberEngine::new(),UiEngine::new(),OnboardingEngine::new()which returnResultDefaultderive toRealTimeAnalyticsRestructured apply_for_sponsorship
SponsorshipApplicationstruct with all required fieldsResult
cargo checkpasses successfullyFiles Changed (23 files)
All changes are in
src-tauri/src/