#country-code #name #iso-3166-1 #localization

countries-iso3166

Simple Conversion for Country Codes and Names using ISO 3166

3 stable releases

1.0.2 Jul 28, 2023

#154 in Internationalization (i18n)

Download history 19/week @ 2024-02-23 5/week @ 2024-03-01 2/week @ 2024-03-08 2/week @ 2024-03-15 42/week @ 2024-03-29 16/week @ 2024-04-05

58 downloads per month

MIT/Apache

28KB
822 lines

countries-iso3166

Rust crates.ioDocs

This crate is used to convert between UTF-8 Strings and country codes for easier handling of country names in ISO 3166 format. It has no dependencies and no_std compatible. The country names are converted to country codes in rust because country names can contain special characters not common in English which can cause confusion.

The current implementation is only for ISO 3166-1 https://en.wikipedia.org/wiki/ISO_3166-1.

Planned implementation for ISO 3166-3 https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3

LICENSE

This code is licensed under APACHE-2.0 or MIT license.

Code of Conduct

All contributions and communication must adhere to the Rust Code of Conduct

No runtime deps