countrycode 0.3.0

https://countrycode.org/ ALL COUNTRY CODES
Documentation
1
2
3
4
5
6
7
8
9
use country_code::CountryCode;
use countrycode::RECORDS_ISO2_MAP;

#[test]
fn test_static() {
    let record = RECORDS_ISO2_MAP.get(&CountryCode::US).unwrap();
    println!("{record:?}");
    assert_eq!(record.iso3, "USA");
}