You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use serde::Deserialize;
#[derive(Debug, Deserialize)]
struct Version {
name: String,
url: String,
sha256: String
}
let resp = reqwest::blocking::get("https://cache.ruby-lang.org/pub/ruby/index.txt")?;
let mut rdr = csv::ReaderBuilder::new()
.delimiter(b'\t')
.from_reader(resp);
for result in rdr.deserialize() {
let version: Version = result?;
println!("{:?}", version);
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: