rust-phonenumber
rust-phonenumber copied to clipboard
Library for parsing, formatting and validating international phone numbers.
rust-phonenumber is currently quite a long way behind Google libphonenumber (currently version 8.12.31) - so users of the project do not get the advantage of changes in number plans. It...
For some reason, the initial deref of the `lazy_static` takes several seconds, locking up the page while the first phone number is either parsed or formatted. After that, it's really...
At the moment most files are not formatted with the [rustfmt](https://github.com/rust-lang/rustfmt) formatter. It would be good to use this generally used standard for the code. Command: ```bash $ cargo fmt...
At the moment it's necessary to look at the source to find e.g. the `id()` method on `Country`.
See `findNumbers` in [`libphonenumber`](https://github.com/googlei18n/libphonenumber).
Is there any plan to add methods to change parts of a `PhoneNumber` or create a new one based on an existing one? E.g. `set_extension`? I'd rather not rely on...
```rust let n = "0032474123456"; assert!(phonenumber::parse(None, n).is_ok()); ``` I would expect this to yield `+32474123456`, but it seemingly does not: it yields `InvalidCountryCode` (which could've parsed as Belgium instead).
[BUG] Proper E164 phone number parsed and formatted incorrectly when using wrong reference country
Behavior expected: obtaining same number when parsing (with any country) and formatting Steps to reproduce: Parse international number with country other than country from the phone number Tested with: Phone:...