gitoxide icon indicating copy to clipboard operation
gitoxide copied to clipboard

Add a `tokio` feature

Open Austaras opened this issue 1 year ago • 2 comments

Summary 💡

Title.

Motivation 🔦

It won't make any difference to end user, but when consumed as a rust lib, it would be great if one can use gitoxide with the more popular async runtime.

Austaras avatar Aug 28 '24 11:08 Austaras

Actually the blocking-reqwest feature uses reqwest which uses tokio.

And it also has an async network client feature that exposes the async API, but then there's no convenient high-level method like synchronous code have.

The underlying crate supports async/sync.

NobodyXu avatar Aug 28 '24 11:08 NobodyXu

The way I understand this issue is such that wherever currently async-std is used, there should be an alternative that uses the respective tokio type. This way, those who have tokio running already can just use that, without the need to link to another runtime.

Byron avatar Aug 28 '24 13:08 Byron