{"id":21739502,"url":"https://github.com/kodemartin/rustpostal","last_synced_at":"2025-10-27T18:07:13.388Z","repository":{"id":42703876,"uuid":"315000867","full_name":"kodemartin/rustpostal","owner":"kodemartin","description":"Rust bindings to libpostal","archived":false,"fork":false,"pushed_at":"2022-03-28T01:29:28.000Z","size":66,"stargazers_count":14,"open_issues_count":4,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T20:49:27.170Z","etag":null,"topics":["bindings","parser","rust","tokenizer"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kodemartin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-22T09:25:22.000Z","updated_at":"2023-10-19T21:36:10.000Z","dependencies_parsed_at":"2022-09-02T06:02:03.044Z","dependency_job_id":null,"html_url":"https://github.com/kodemartin/rustpostal","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodemartin%2Frustpostal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodemartin%2Frustpostal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodemartin%2Frustpostal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kodemartin%2Frustpostal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kodemartin","download_url":"https://codeload.github.com/kodemartin/rustpostal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654093,"owners_count":21140236,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bindings","parser","rust","tokenizer"],"created_at":"2024-11-26T06:09:15.793Z","updated_at":"2025-10-06T23:04:51.609Z","avatar_url":"https://github.com/kodemartin.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# rustpostal\n\nRust bindings to [libpostal][], a fast statistical parser/normalizer\nfor street addresses anywhere in the world.\n\n## Usage\n\n\n```rust\nuse rustpostal::address;\nuse rustpostal::expand;\nuse rustpostal::LibModules;\n\nfn main() -\u003e Result\u003c(), rustpostal::error::RuntimeError\u003e {\n    let postal_module = LibModules::All;\n    postal_module.setup()?;\n\n    let address = \"St Johns Centre, Rope Walk, Bedford, Bedfordshire, MK42 0XE, United Kingdom\";\n\n    let labeled_tokens = address::parse_address(address, None, None)?;\n\n    for (token, label) in \u0026labeled_tokens {\n        println!(\"{}: {}\", token, label);\n    }\n\n    let expanded = expand::expand_address_with_options(address, Some([\"en\"].iter()))?;\n\n    for expansion in \u0026expanded {\n        println!(\"{}\", expansion);\n    }\n    Ok(())\n}\n```\n\n## Setup\n\n1. Install the C library: See [installation instructions][linux-install].\n\n2. Export the installation path to `LD_LIBRARY_PATH`.\n\n## Tests\n\n```\n$ cargo test -- --test-threads 1\n```\n\n\n[libpostal]: https://github.com/openvenues/libpostal\n[linux-install]: https://github.com/openvenues/libpostal#installation-maclinux\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodemartin%2Frustpostal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkodemartin%2Frustpostal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkodemartin%2Frustpostal/lists"}