iso3166-1.rs
Rust crate for ISO 3166-1 data.
What is ISO 3166-1
ISO 3166-1 is part of the ISO 3166 standard published by the International Organization for Standardization (ISO), and defines codes for the names of countries, dependent territories, and special areas of geographical interest.
-- Wikipedia
Installation
Add the following dependency to your Cargo.toml
:
= "^1.0"
And include it in your project:
extern crate iso3166_1;
Examples
Retrieve all country codes:
extern crate iso3166_1;
Retrieve a country code by its alpha2 code:
extern crate iso3166_1;
Retrieve a country code by its alpha3 code:
extern crate iso3166_1;
Retrieve a country code by its name:
extern crate iso3166_1;
Retrieve a country code by its numeric number:
extern crate iso3166_1;
Retrieve country codes by a range of their numeric numbers:
extern crate iso3166_1;
License
License info in LICENSE.md. Long story short, ISC.