libpostal-sys 0.1.0

Low-level wrappers for libpostal address normalization (with locks to support thread-safe initialization)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# `libpostal-sys`

Low-level Rust bindings for the excellent address-parsing library [libpostal](https://github.com/openvenues/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.

## Development notes

```sh
# 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
```