Files
home/homegrown/email/src/main.rs
2025-07-07 23:34:30 +02:00

14 lines
373 B
Rust

use std::collections::HashMap;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
//getting the list of channels with id's first
let resp = reqwest::get("https://raw.githubusercontent.com/bvanroll/home/static/yters.json")
.await?
.json::<HashMap<String, String>>()
.await?;
println!("{resp:#?}");
Ok(())
}