Files
tutorialvault/src-tauri/src/lib.rs
Your Name 4e454084a8 feat: implement video_protocol.rs, commands.rs, wire up main.rs, and index.html
- video_protocol.rs: tutdock:// custom protocol with HTTP Range support
  for video streaming, subtitle/font serving with path traversal protection
- commands.rs: all 26 Tauri command handlers as thin wrappers
- main.rs: full Tauri bootstrap with state management, window restore,
  async font caching, and ffmpeg discovery
- index.html: complete HTML markup extracted from Python app
- lib.rs: updated with all module declarations and AppPaths struct
2026-02-19 11:23:37 +02:00

22 lines
432 B
Rust

use std::path::PathBuf;
pub mod commands;
pub mod ffmpeg;
pub mod fonts;
pub mod library;
pub mod prefs;
pub mod recents;
pub mod state;
pub mod subtitles;
pub mod utils;
pub mod video_protocol;
/// Application directory paths resolved at startup, managed as Tauri state.
pub struct AppPaths {
pub exe_dir: PathBuf,
pub state_dir: PathBuf,
pub fonts_dir: PathBuf,
pub fa_dir: PathBuf,
pub subs_dir: PathBuf,
}