libpostal-sys

Crates.iolibpostal-sys
lib.rslibpostal-sys
version0.1.1
sourcesrc
created_at2022-02-17 00:33:43.56024
updated_at2022-02-17 12:36:35.371476
descriptionLow-level wrappers for libpostal address normalization (with locks to support thread-safe initialization)
homepagehttps://github.com/faradayio/geocode-csv/tree/main/crates/libpostal-sys
repositoryhttps://github.com/faradayio/geocode-csv
max_upload_size
id533677
size44,904,112
Eric Kidd (emk)

documentation

https://docs.rs/libpostal-sys

README

libpostal-sys

Low-level Rust bindings for the excellent address-parsing library libpostal. Several other Rust wrappers for this library exist. This one includes the following features, which may or may not be available elsewhere:

  • Bundled libpostal source code.
  • Support for building static Rust binaries.
  • Support for thread-safe initialization of libpostal, using provided global locks.
  • Packing as a low-level libpostal-sys crate that can be shared between one or more high-level crates, as per standard Rust conventions.
  • Support from cross-compiling from x86_64 Macs to aarch64 (Apple Silicon).

Development notes

# Check out libpostal source code as a git submodule.
git submodule update --init

# Update our Rust API bindings manually.
bindgen wrapper.h -o src/bindings.rs
Commit count: 130

cargo fmt