{"id":15750723,"url":"https://github.com/guibranco/viacep-rs","last_synced_at":"2025-05-13T01:25:33.586Z","repository":{"id":57671650,"uuid":"236539303","full_name":"guibranco/viacep-rs","owner":"guibranco","description":"🇧🇷 📍 ViaCEP client wrapper for Rust projects","archived":false,"fork":false,"pushed_at":"2024-11-06T14:18:22.000Z","size":140,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T19:06:34.486Z","etag":null,"topics":["address","api","cep","code","correios","fazenda","gia","hacktoberfest","ibge","mf","postal","postalcode","viacep","webservice","ws","zip","zipcode"],"latest_commit_sha":null,"homepage":"http://guilherme.stracini.com.br/viacep-rs/","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/guibranco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-01-27T16:42:51.000Z","updated_at":"2025-02-21T18:38:08.000Z","dependencies_parsed_at":"2024-01-04T17:29:51.851Z","dependency_job_id":"e57e8bd6-4d35-4a5c-b177-9f8f42f1bbbe","html_url":"https://github.com/guibranco/viacep-rs","commit_stats":{"total_commits":44,"total_committers":3,"mean_commits":"14.666666666666666","dds":"0.11363636363636365","last_synced_commit":"1cb9738f7c37da7c942f5388542a8ce8dd4f6698"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fviacep-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fviacep-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fviacep-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fviacep-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guibranco","download_url":"https://codeload.github.com/guibranco/viacep-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253852286,"owners_count":21973895,"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":["address","api","cep","code","correios","fazenda","gia","hacktoberfest","ibge","mf","postal","postalcode","viacep","webservice","ws","zip","zipcode"],"created_at":"2024-10-04T06:42:17.335Z","updated_at":"2025-05-13T01:25:33.558Z","avatar_url":"https://github.com/guibranco.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ViaCEP Rust client\n\n🇧🇷📍[ViaCEP](https://viacep.com.br) client wrapper for Rust projects.\n\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/guibranco/viacep-rs/main)\n![Crates.io](https://img.shields.io/crates/d/viacep-rs)\n[![wakatime](https://wakatime.com/badge/github/guibranco/viacep-rs.svg)](https://wakatime.com/badge/github/guibranco/viacep-rs)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/edadaf30dee88d89995c/maintainability)](https://codeclimate.com/github/guibranco/viacep-rs/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/edadaf30dee88d89995c/test_coverage)](https://codeclimate.com/github/guibranco/viacep-rs/test_coverage)\n[![CodeFactor](https://www.codefactor.io/repository/github/guibranco/viacep-rs/badge)](https://www.codefactor.io/repository/github/guibranco/viacep-rs)\n\n| Service      | Status |\n| -------      | :----: |\n| AppVeyor CI  | [![Build status](https://ci.appveyor.com/api/projects/status/w1di231c9hr2tyhy/branch/main?svg=true)](https://ci.appveyor.com/project/guibranco/viacep-rs/branch/main) |\n| crates.io    | [![crates.io](https://img.shields.io/crates/v/viacep-rs.svg)](https://crates.io/crates/viacep-rs) |\n\nPure Rust bindings to the [ViaCEP API](https://viacep.com.br).\n\n## Dependencies and support\n\n`viacep-rs` is intended to work on all tier 1 supported Rust systems:\n\n- MacOSX\n- Linux\n- Windows\n\n## Minimum Compiler Version\n\nDue to the use of certain features `viacep-rs` requires `rustc` version 1.18 or\nhigher.\n\n## Getting Started\n\nAdd the following to your `Cargo.toml`\n\n```toml\n[dependencies]\nviacep_rs = \"0.2.0\"\nserde_json = \"1.0\"\n```\n\nThen in your `lib.rs` or `main.rs` file add:\n\n```rust\nextern crate viacep_rs;\n\nlet client = ViaCepClient::new();\n\n// Single Zip Code data \nmatch client.get_zipcode(\"03177010\") {\n    Err(e) =\u003e eprintln!(\"{:?}\", e),\n    Ok(data) =\u003e {\n        let cep = data.unwrap();\n        println!(\"IBGE: {} | Address: {} | Neighborhood: {} | City: {} | UF: {}\", cep.ibge, cep.address, cep.neighborhood, cep.City, cep.state_initials);\n    }\n}\n\n//Find by address data\nmatch client.search(\"SP\", \"São Paulo\", \"Paulista\") {\n    Err(e) =\u003e eprintln!(\"{:?}\", e),\n    Ok(data) =\u003e {\n        let addresses = data.unwrap();\n        for address in addresses {\n            println!(\"IBGE: {} | Address: {} | City: {} | Zip: {}\", address.ibge, address.address, address.city, address.zip);\n        }\n    }\n}\n```\n\n## License\n\nLicensed under\n\n- MIT license ([LICENSE](https://github.com/guibranco/viacep-rs/blob/main/LICENSE) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fviacep-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguibranco%2Fviacep-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fviacep-rs/lists"}