iso3166-3.rs
Rust crate for ISO 3166-3 data.
ISO 3166-3
ISO 3166-3 is part of the ISO 3166 standard published by the International Organization for Standardization (ISO), and defines codes for country names which have been deleted from ISO 3166-1 since its first publication in 1974.
-- Wikipedia
Installation
Add the following dependency to your Cargo.toml:
iso3166_3 = "*"
And include it in your project:
extern crate iso3166_3;
Examples
Retrieve all former country codes:
extern crate iso3166_3;
Or retrieve a former country code by its ISO 3166-3 four-character code:
...
let country = code.unwrap;
Retrieve a vector of former country codes by a range of when the code was valid:
...
// Codes valid from years 1974-1990.
validity;
// Codes valid from years 1990 onward to infinity:
validity;
// Codes valid until 1998 and prior:
validity;
License
License info in LICENSE.md
. Long story short, ISC.