Creating new sync Api for candle-hub.

- `api::Api` -> `api::tokio::api` (And created new `api::sync::Api`).
- Remove `tokio` from all our examples.
- Using similar codebase for now instead of ureq (for simplicity).
This commit is contained in:
Nicolas Patry
2023-07-06 15:15:25 +02:00
parent dd60bd84bb
commit 115629fe08
9 changed files with 719 additions and 29 deletions

View File

@ -0,0 +1,6 @@
/// The asynchronous version of the API
#[cfg(feature = "tokio")]
pub mod tokio;
/// The synchronous version of the API
pub mod sync;