Coverage Report

Created: 2026-11-04 02:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
super-tts-daemon/src/registry/custom_repo.rs
Line
Count
Source
1
// SPDX-License-Identifier: GPL-3.0-only
2
//! Resolve an arbitrary repo URL into an [`IndexBackend`] for the Custom-repo
3
//! install path: `super_engine_daemon::registry::custom_repo`, shared with
4
//! Super STT, for Super TTS's manifests.
5
6
use super_engine_forge::ForgeClient;
7
8
pub use super_engine_daemon::registry::custom_repo::ResolveError;
9
10
use crate::registry::index_schema::IndexBackend;
11
12
/// Resolve `repo_url`'s latest release into an index entry. See
13
/// `super_engine_daemon::registry::custom_repo::resolve`.
14
///
15
/// # Errors
16
/// See [`ResolveError`].
17
0
pub async fn resolve(
18
0
    client: &dyn ForgeClient,
19
0
    repo_url: &str,
20
0
) -> Result<IndexBackend, ResolveError> {
21
0
    super_engine_daemon::registry::custom_repo::resolve::<super_tts_registry_types::Tts>(
22
0
        client, repo_url,
23
0
    )
24
0
    .await
25
0
}