The arch-mirrors
crate allows you to parse the JSON from https://www.archlinux.org/mirrors/status/json into a typed,
rusty form.
For the examples see examples.
With cargo-edit
:
$ cargo add arch-mirrors
Or via Cargo.toml
:
[dependencies]
arch-mirrors = "0.1.1"