From d8ecb21a7931ec6f1d7b447d0c15f53de32bfc45 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 23 Feb 2026 12:10:44 +0900 Subject: refactor(vcs): convert VcsDriver trait to native async Replace manual tokio::runtime::Handle::current().block_on() calls with native async/await throughout all VCS drivers. Introduce AnyVcsDriver enum for static dispatch to avoid dyn trait with async methods. Co-Authored-By: Claude Opus 4.6 --- crates/mozart-registry/src/vcs_bridge.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/mozart-registry/src/vcs_bridge.rs') diff --git a/crates/mozart-registry/src/vcs_bridge.rs b/crates/mozart-registry/src/vcs_bridge.rs index d81cae8..78aaaa5 100644 --- a/crates/mozart-registry/src/vcs_bridge.rs +++ b/crates/mozart-registry/src/vcs_bridge.rs @@ -16,7 +16,7 @@ use crate::resolver::{parse_normalized, version_stability}; /// Scan all VCS-type repositories and collect package versions. /// /// Non-VCS repos (e.g. "composer", "package") are silently skipped. -pub fn scan_vcs_repositories(repositories: &[RawRepository]) -> Vec { +pub async fn scan_vcs_repositories(repositories: &[RawRepository]) -> Vec { let config = DriverConfig::default(); let mut all_versions = Vec::new(); @@ -34,7 +34,7 @@ pub fn scan_vcs_repositories(repositories: &[RawRepository]) -> Vec { all_versions.extend(versions); } -- cgit v1.3.1