Releases: kodemartin/rustpostal
Releases · kodemartin/rustpostal
Version 0.3.0
Release notes
Updates
- Add new structure
ParsedAddress
that wraps the labeled tokens from
AddressParserResponse
. - Implement
IntoIterator
forAddressParserResponse
.
Version 0.2.0
Release notes
This release brings a refactoring of the basic modules expand
and address
while keeping the high-level functions intact.
The Rust API guidelines have been followed to this end.
More specifically:
address::NormalizeOptions
has been completely rewritten, reducing unsafe code to the minimum. The struct implements the builder pattern to introduce various options gradually.- String, and address options are represented by
bitflags
. - Memory allocation/deallocation is handled through Rust types, except for cases where dedicated
libpostal
functions are present. - The
LibModules
enum handles safely the setup and teardown.setup
,teardown
have been thus deprecated.
- Error propagation has been implemented through
Result
return types. - Additional documentation has been written, including examples and information about possible errors.
- Tests (unit, and doc) have been further populated.
- Common traits have been eagerly implemented for all public structs.