Added `Database::iter()`, docs, DB update, deps bump.
I mainly needed to iterate the DB contents to generate a list of countries/prefixes for a UI where the user enters a phone number. So I added Database::iter().
While at it, I also:
- Fixed all
doc-related warnings. - Updated the database to
8.13.35. - In
Cargo.toml:- Bumped all deps .
- Bumped the crate version to
0.3.5+8.13.35.
@gferon we should install a CI step that checks whether the database update is a legitimate update.
we should install a CI step that checks whether the database update is a legitimate update.
Done!
Thanks a lot!
Looks like regex needs a more recent version of Rust. @rubdos how about bumping our MSRV to 1.65?
Looks like
regexneeds a more recent version of Rust. @rubdos how about bumping our MSRV to 1.65?
Uh, do we actually need regex 1.10 for the new db to work? Because there's no reason to bump it in Cargo.toml if we don't.
EDIT: same with either. And I don't recall why sure why strum has this range for a version.
And I don't recall why sure why
strumhas this range for a version.
Nevermind, that's because it's still on 0.x :-)
I downgraded the regex crate and also bumped the DB to .36.
Thanks a lot! Merged. I'll publish a new release now.
EDIT: here it is - https://crates.io/crates/phonenumber/0.3.5+8.13.36