Skip to content

Releases: kodemartin/rustpostal

Version 0.3.0

12 Mar 10:31
Compare
Choose a tag to compare

Release notes

Updates

  • Add new structure ParsedAddress that wraps the labeled tokens from
    AddressParserResponse.
  • Implement IntoIterator for AddressParserResponse.

Version 0.2.0

19 Jul 16:18
Compare
Choose a tag to compare

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.