lagoinha-rs

Rust project inspired by https://github.com/IgorHalfeld/lagoinha used to retrieve Addresses from the Brazilian Postal Code (CEP)

❌ - This project is in the first stages of development, and should not be used in production.

✔️ - Contributions and reviews are appreciated !


Lagoinha-rs

Rust library that returns addresses from the Brazilian Postal Code (CEP)
using the following APIs: Correios, ViaCEP, Cepla

Readme in Português


Lagoinha is a package that uses public APIs to fetch addresses using the Brazilian Postal Code (CEP). This package cuncurrenlty calls all the supported APIs and returns the first result.

Diagram:

lagoinha call fluxogram

Why this name ?

It means "little pond". It is a Brazillian meme ! Check the videovídeo!

Instalation

toml lagoinha-rs = "0.1"

How to use it

```rust extern crate lagoinha; extern crate tokio;

[tokio::main]

async fn main() {
let addr = lagoinha::getaddress("CEPGOES_HERE").await; println!("{:#?}", addr); } ```

Run Examples

Check the examples folder ! To run them, use the commands below. ```bash

these examples can be run with a specific CEP (or leave blank for default value)

cargo run --example getaddress 20940040 cargo run --example standaloneservices 20940040

```


Todo