single_rust 0.5.8

Single-cell analysis in Rust
Documentation
1
2
3
4
5
6
use bytes::Bytes;
use reqwest::IntoUrl;

pub async fn download_resource<T: IntoUrl>(url: T) -> anyhow::Result<Bytes> {
    Ok(reqwest::get(url).await?.bytes().await?)
}