2 unstable releases

Uses old Rust 2015

0.1.0 Dec 28, 2016
0.0.1 Jul 20, 2015

#23 in #primary

Download history 32/week @ 2024-03-31 2/week @ 2024-04-07 5/week @ 2024-04-14 68/week @ 2024-04-21 20/week @ 2024-04-28 62/week @ 2024-05-05 16/week @ 2024-05-19 31/week @ 2024-05-26 67/week @ 2024-06-09 24/week @ 2024-06-16 65/week @ 2024-06-23 54/week @ 2024-06-30 48/week @ 2024-07-07 81/week @ 2024-07-14

248 downloads per month

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