15 lines
606 B
Rust
15 lines
606 B
Rust
//! Thin desktop adapter over the GUI-free, shared model provisioner.
|
|
pub use searchi_assets::TOTAL_BYTES;
|
|
use std::{path::Path, sync::atomic::AtomicU64};
|
|
|
|
/// Notify only after a pinned asset is byte-verified; download continues while
|
|
/// desktop orchestration prepares a separately owned query session.
|
|
pub fn provision_with_verified_assets(
|
|
directory: &Path,
|
|
progress: &AtomicU64,
|
|
callback: impl FnMut(searchi_assets::VerifiedAsset),
|
|
) -> Result<(), String> {
|
|
searchi_assets::provision_with_verified_assets(directory, progress, callback)
|
|
.map_err(|error| format!("{error:#}"))
|
|
}
|