Skip to main content

Module core

Module core 

Source
Expand description

Core processing engines (formats, matching, sync).

Legacy re-export: the module now lives in the subx-core crate; the canonical path is subx_core::core. This alias exists for consumers that have not yet migrated and will be removed once they have. Core processing engine for SubX.

This module contains core subsystems for file operations, subtitle format handling, language detection, matching algorithms, parallel processing, synchronization, and dependency injection management.

Each subsystem is organized into its own submodule:

  • file_manager for safe file operations with rollback support
  • formats for parsing and converting subtitle formats
  • language for language detection and handling
  • input for input path collection, directory scanning and archive extraction
  • matcher for AI-powered subtitle matching algorithms
  • parallel for task scheduling and parallel execution
  • report for the transport-agnostic reporting seam core reports through
  • sync for audio-text synchronization engines
  • factory for component creation with dependency injection
  • services for service container and dependency management

Modules§

archive
Archive extraction support for SubX.
factory
Component factory for creating configured instances of core components.
file_manager
Safe file operation management with atomic rollback capabilities.
formats
Comprehensive subtitle format handling and conversion system.
fs_util
Utility functions for filesystem operations with CIFS compatibility.
input
Core-owned input path collection.
language
Language detection module.
lock
Exclusive file-lock infrastructure for SubX operations.
matcher
AI-powered subtitle file matching and discovery engine.
parallel
High-performance parallel processing system for subtitle operations.
report
Transport-agnostic reporting seam for src/core/ and src/services/.
sync
Refactored sync module focused on VAD (Voice Activity Detection).
translation
Core subtitle translation engine.
uuidv7
Shared UUIDv7 identifier generation with strict 1ms spacing.

Structs§

ComponentFactory
Component factory for creating configured instances.