Skip to content

Rust API ​

The Rust backend is documented with inline /// doc comments. Generate and browse the full API docs locally:

sh
cd src-tauri
cargo doc --open --no-deps

Key Tauri commands ​

These functions are callable from the renderer via invoke():

File operations ​

CommandModuleDescription
mt_read_filem002_fsRead file contents as UTF-8 string
mt_write_filem002_fsWrite string to file path
mt_stat_filem002_fsGet file metadata (size, modified)
CommandModuleDescription
mt_search_directorym013bRipgrep-powered directory search

Diff ​

CommandModuleDescription
mt_diff_baselinem031_diffGet baseline content for diff view

CLI ​

CommandModuleDescription
mt_drain_pending_opensmainDrain CLI-specified files for opening

System ​

CommandModuleDescription
mt_app_quitmainGraceful app shutdown
mt_cache_rootmt_pathsGet app cache directory

Testing ​

sh
# Run all Rust tests
cd src-tauri
cargo test

# Run tests for a specific module
cargo test -- m031
cargo test -- m001
cargo test -- m013b

The test suite currently has 427 tests covering all modules.

Released under the MIT License.