rvcampos/brasilapi-client-rust

Rust client implementation for Brasil API

Rust client implementation for BrasilAPI GitHub Project

Rust client implementation for Brasil API

BrasilAPI GitHub Project

Installation

To use this client, add the following to your Cargo.toml:

[dependencies]
brasilapi-client = "0.10.0"

You may also choose a runtime

futures = "0.3" # If not using async runtimes

Getting Started

 use brasilapi_client::{client::BrasilApiClient};
 use futures::executor::block_on;

 fn main() { block_on(async move {
     // As this API is public, you can use the following default builder
     let cli = BrasilApiClient::new_default();

     // Get the address info for zipcode  "01402-000"
     let zipcode_answer = cli.get_cep("01402-000", None).await.unwrap();

     println!("Street: {}", zipcode_answer.street);
 })}

Output:

Street: Avenida Brigadeiro Luiz Antonio

APIs

Banks

TODO

CEP (zipcode)

  • V1 -> Implemented
  • V2 -> Implemented

CNPJ

TODO

DDD

TODO

National Holidays - (Brasil)

Partial Implemented -> Dates are being treated as STRINGS

FIPE

TODO

IBGE

TODO

Versions

Find the latest versions by id

v0.2.2 - Dec 20, 2021

What's Changed

New Contributors

Full Changelog: https://github.com/rvcampos/brasilapi-client-rust/compare/v0.1.2...v0.2.2

v0.1.2 - Sep 07, 2021

Implementing DDD and Banks

  • [x ] Banks
  • [x ] CEP V1
  • [x ] CEP V2
  • CNPJ
  • [x ] DDD
  • [x ] Feriados Nacionais
  • IBGE
  • Tabela FIP

v0.1.0 - Sep 07, 2021

Initital release

  • Banks
  • [x ] CEP V1
  • [x ] CEP V2
  • CNPJ
  • DDD
  • [x ] Feriados Nacionais
  • IBGE
  • Tabela FIP

Information - Updated Jul 07, 2022

Stars: 0
Forks: 0
Issues: 0

Cargo-xbuild is a replacement for xargo which is now no longer supported

Cross compling sysroot features can be specified in the command line parameters or via cargo config

Cargo-xbuild is a replacement for xargo which is now no longer supported

Cargo Advent of Code Helper

cargo-aoc is a simple CLI tool that aims to be a helper for the Criterion

Cargo Advent of Code Helper

cargo-tree has been integrated directly into Cargo as of the 1

This repository is archived as a result

cargo-tree has been integrated directly into Cargo as of the 1

cargo-ndk - Build Rust code for Android

This cargo extension handles all the environment configuration needed for successfully building libraries

cargo-ndk - Build Rust code for Android

cargo-all-features

Cargo subcommands that build and test all feature flag combinations for a crate

cargo-all-features

cargo-geiger ☢️

A program that lists statistics related to the usage of unsafe Rust code in a Rust

cargo-geiger ☢️

screeps-starter-rust

Starter Rust AI for screeps-game-api bindings from the cargo-screeps for uploading the code, but the code should still

screeps-starter-rust

ttf2mesh-rs  

A high-level Rust wrapper API for cargo-fuzz

ttf2mesh-rs  

Bitcoin's libbitcoinconsensus with Rust bindings

This project builds the libbitcoinconsensus library from Bitcoin's C++ sources using cargo and provides Rust bindings to its API

Bitcoin's libbitcoinconsensus with Rust bindings
Facebook Instagram Twitter GitHub Dribbble
Privacy