Feature flags confusion #2176
-
I'm trying to clone a repo and succeeded with
Which feature should I use for an async Code:
|
Beta Was this translation helpful? Give feedback.
Answered by
setoelkahfi
Sep 18, 2025
Replies: 1 comment
-
Got it working with a simple tokio wrapper: pub(crate) async fn clone_async(
repo_url: &str,
project_path: &Path,
) -> Result<Repository, GitError> {
let repo_url = repo_url.to_string();
let project_path = project_path.to_path_buf();
task::spawn_blocking(move || clone(&repo_url, &project_path))
.await
.map_err(|err| GitError {
message: format!("Task join error: {}", err),
})?
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
setoelkahfi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got it working with a simple tokio wrapper: