locode 0.2.0

Standardized country and city codes
Documentation
#![doc = include_str!("../README.md")]
#![no_std]

#[cfg(any(test, feature = "_feat_alloc"))]
extern crate alloc;

#[cfg(any(test, feature = "_feat_std"))]
extern crate std;

#[cfg(feature = "feat-iso3166")]
pub mod iso3166 {
    //! ISO 3166-1 country codes mapping.
    //! 
    //! Enabled with the `feat-iso3166` feature (~350 KiB).

    #[cfg(feature = "feat-build-fresh")]
    include!(concat!(env!("OUT_DIR"), "/iso3166.rs"));

    #[cfg(not(feature = "feat-build-fresh"))]
    include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/iso3166.rs"));
}

#[cfg(feature = "feat-iata-city")]
pub mod iata {
    //! IATA city codes mapping.
    //! 
    //! Enabled with the `feat-iata-city` feature (~6 MiB).

    #[cfg(feature = "feat-build-fresh")]
    include!(concat!(env!("OUT_DIR"), "/iata.rs"));

    #[cfg(not(feature = "feat-build-fresh"))]
    include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/iata.rs"));
}

#[cfg(feature = "feat-iso3166")]
pub use crate::iso3166::Iso3166;

#[cfg(feature = "feat-iata-city")]
pub use crate::iata::City as IataCity;