2 unstable releases

Uses old Rust 2015

0.1.0 Dec 28, 2016
0.0.1 Jul 20, 2015

#23 in #primary

MIT/Apache

1MB
96 lines

zip_codes

Based off of the free ZIP code database provided by federalgovernmentzipcodes.us ("primary location only" dataset).

This library generates a lookup map from a CSV file at compile time. Depending on this library comes at a roughly 11MB binary and memory cost.

Documentation

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A lookup table for all primary U.S. ZIP codes.

Examples

assert_eq!(zip_codes::map().get("10465").unwrap().state, "NY");
assert_eq!(zip_codes::map().get("53186").unwrap().city, "WAUKESHA");

Dependencies