Documentos fiscais em rust

Overview
Comments
  • Erros tipados

    Erros tipados

    Criadas as estruturas para comportarem os tipos de erros que a crate pode gerar durante o parse.

    Para o usuário final, a crate fornece o tipo Error do modelo 55. Por meio dela, ou fazendo o parse da 'nfe base', o usuário consegue chegar ao tipo que lida com os erros do serde e IO.

    enhancement nfe 
    opened by fernandobatels 2
  • Parse

    Parse

    Implementação do parse do XML da NF-e.

    Tags:

    infNfe

    • [x] versao
    • [x] chave

    ide

    • [x] cUF
    • [x] cNF
    • [x] natOp
    • [x] mod
    • [x] serie
    • [x] nNF
    • [x] dhEmi
    • [x] dhSaiEnt
    • [x] tpNF
    • [x] idDest
    • [x] cMunFG
    • [x] tpImp
    • [x] tpEmis
    • [x] cDV
    • [x] tpAmb
    • [x] finNFe
    • [x] indFinal
    • [x] indIntermed
    • [x] indPres
    • [x] procEmi
    • [x] verProc

    emit

    • [x] CNPJ
    • [x] xNome
    • [x] xFant
    • enderEmit
      • [x] xLgr
      • [x] nro
      • [x] xCpl
      • [x] xBairro
      • [x] cMun
      • [x] xMun
      • [x] UF
      • [x] CEP
      • [x] fone
    • [x] IE
    • [x] IEST

    dest

    • [x] CNPJ
    • [x] xNome
    • enderDest
      • [x] xLgr
      • [x] nro
      • [x] xCpl
      • [x] xBairro
      • [x] cMun
      • [x] xMun
      • [x] UF
      • [x] CEP
      • [x] fone
    • [x] indIEDest
    • [x] IE

    det

    • [x] nItem
    • prod
      • [x] cProd
      • [x] cEAN
      • [x] xProd
      • [x] NCM
      • [x] CEST
      • [x] indEscala
      • [x] CNPJFab
      • [x] cBenef
      • [x] CFOP
      • [x] uCom
      • [x] qCom
      • [x] vUnCom
      • [x] vProd
      • [x] cEANTrib
      • [x] uTrib
      • [x] qTrib
      • [x] vUnTrib
      • [x] vFrete
      • [x] vSeg
      • [x] vDesc
      • [x] vOutro
      • [x] indTot
    • imposto
      • [x] vTotTrib
      • ICMS
        • [x] ICMS60
        • [x] ICMSSN202
      • PIS
        • [x] PISOutr
        • [x] PISNT
        • [x] PISAliq
      • COFINS
        • [x] COFINSNT
        • [x] COFINSOutr
        • [x] COFINSAliq

    total

    • ICMSTot
      • [x] vBC
      • [x] vICMS
      • [x] vOutro
      • [x] vNF
      • [x] vCOFINS
      • [x] vPIS
      • [x] vDesc
      • [x] vSeg
      • [x] vFrete
      • [x] vProd
      • [x] vTotTrib

    transp

    • [x] modFrete

    infAdic

    • [x] infCpl
    nfe 
    opened by fernandobatels 2
  • Serialize

    Serialize

    Implementação da serialização da nfe. Foi necessário mudar a crate usada para lidar com o XML. Consegui organizar melhor o fonte envolvido na serialização, mas ainda sim há o uso de structs auxiliares.

    enhancement nfe 
    opened by fernandobatels 1
  • Serialização

    Serialização

    Implementar a geração do XML/serialização das structs para o xml da nota. No #6 foi implementada a deserialização. Restando para este, o processo inverso.

    enhancement nfe 
    opened by fernandobatels 0
  • Geração da nota

    Geração da nota

    Considerando que praticamente todas as structs são públicas, qualquer poderá gerar o XML da nfe populando-as manualmente.

    A ideia dessa issue é prover um "nota fiscal builder", que simplifique a construção de uma nota e que sirva de base para as validações que virão #3

    enhancement nfe 
    opened by fernandobatels 0
  • Validação

    Validação

    Criar alguma estrutura para que a nfe possa ser validada em cada estado/uf. Talvez uma trait resolva o problema.

    Por agora, o projeto não proverá a validação dos estados. Conforme as implementações destas forem surgindo, vamos as incorporando ao projeto.

    enhancement nfe 
    opened by fernandobatels 0
Owner
Luis Fernando Batels
Luis Fernando Batels
Simple autoclicker written in Rust, to learn the Rust language.

RClicker is an autoclicker written in Rust, written to learn more about the Rust programming language. RClicker was was written by me to learn more ab

null 7 Nov 15, 2022
Rust programs written entirely in Rust

mustang Programs written entirely in Rust Mustang is a system for building programs built entirely in Rust, meaning they do not depend on any part of

Dan Gohman 561 Dec 26, 2022
Rust 核心库和标准库的源码级中文翻译,可作为 IDE 工具的智能提示 (Rust core library and standard library translation. can be used as IntelliSense for IDE tools)

Rust 标准库中文版 这是翻译 Rust 库 的地方, 相关源代码来自于 https://github.com/rust-lang/rust。 如果您不会说英语,那么拥有使用中文的文档至关重要,即使您会说英语,使用母语也仍然能让您感到愉快。Rust 标准库是高质量的,不管是新手还是老手,都可以从中

wtklbm 493 Jan 4, 2023
A library for extracting #[no_mangle] pub extern "C" functions (https://docs.rust-embedded.org/book/interoperability/rust-with-c.html#no_mangle)

A library for extracting #[no_mangle] pub extern "C" functions In order to expose a function with C binary interface for interoperability with other p

Dmitrii - Demenev 0 Feb 17, 2022
clone of grep cli written in Rust. From Chapter 12 of the Rust Programming Language book

minigrep is a clone of the grep cli in rust Minigrep will find a query string in a file. To test it out, clone the project and run cargo run body poem

Raunak Singh 1 Dec 14, 2021
Rust-blog - Educational blog posts for Rust beginners

pretzelhammer's Rust blog ?? I write educational content for Rust beginners and Rust advanced beginners. My posts are listed below in reverse chronolo

kirill 5.2k Jan 1, 2023
The ray tracer challenge in rust - Repository to follow my development of "The Raytracer Challenge" book by Jamis Buck in the language Rust

The Ray Tracer Challenge This repository contains all the code written, while step by implementing Ray Tracer, based on the book "The Ray Tracer Chall

Jakob Westhoff 54 Dec 25, 2022
Learn-rust-the-hard-way - "Learn C The Hard Way" by Zed Shaw Converted to Rust

Learn Rust The Hard Way This is an implementation of Zed Shaw's Learn X The Hard Way for the Rust Programming Language. Installing Rust TODO: Instruct

Ryan Levick 309 Dec 8, 2022
Learn to write Rust procedural macros [Rust Latam conference, Montevideo Uruguay, March 2019]

Rust Latam: procedural macros workshop This repo contains a selection of projects designed to learn to write Rust procedural macros — Rust code that g

David Tolnay 2.5k Dec 29, 2022
The Rust Compiler Collection is a collection of compilers for various languages, written with The Rust Programming Language.

rcc The Rust Compiler Collection is a collection of compilers for various languages, written with The Rust Programming Language. Compilers Language Co

null 2 Jan 17, 2022
Integra8 rust integration test framework Rust with a focus on productivity, extensibility, and speed.

integra8 Integra8 rust integration test framework Rust with a focus on productivity, extensibility, and speed. | This repo is in a "work in progress"

exceptional 3 Sep 26, 2022
Neofetch but in Rust (rust-toml-fetch)

rtfetch Configuration Recompile each time you change the config file logo = "arch.logo" # in src/assets. info = [ "", "", "<yellow>{host_n

Paolo Bettelini 6 Jun 6, 2022
Rust Sandbox [code for 15 concepts of Rust language]

Rust-Programming-Tutorial Rust Sandbox [code for 15 concepts of Rust language]. The first time I've been introduced to Rust was on January 2022, you m

Bek Brace 4 Aug 30, 2022
TypeRust - simple Rust playground where you can build or run your Rust code and share it with others

Rust playground Welcome to TypeRust! This is a simple Rust playground where you can build or run your Rust code and share it with others. There are a

Kirill Vasiltsov 28 Dec 12, 2022
Rust Imaging Library: A high-level Rust imaging crate.

ril Rust Imaging Library: A performant and high-level Rust imaging crate. Documentation • Crates.io • Discord What's this? This is a Rust crate design

Jay3332 18 Jan 5, 2023
In this repository you can find modules with code and comments that explain rust syntax and all about Rust lang.

Learn Rust What is this? In this repository you can find modules with code and comments that explain rust syntax and all about Rust lang. This is usef

Domagoj Ratko 5 Nov 5, 2022
Game Boy Emulator written in Rust, as a way to fully grasp the Rust programming language

Flan's Game Boy Emulator Game Boy Emulator written in Rust, as a way to get hands-on with the Rust programming language, and creating a proper project

Flan 3 Dec 31, 2022
Code Examples in Rust. Reviewing RUST

There are some RUST example code here. Run like this cargo run --example enums cargo run --example iterator ... You can learn about RUST coding from

James Johnson 9 Oct 1, 2022
Rust implementation of Andrej Karpathy's micrograd for purposes of learning both ML and Rust.

micrograd_rs Rust implementation of Andrej Karpathy's micrograd for purposes of learning both ML and Rust. Main takeaways Basically the same takeaways

null 3 Oct 28, 2022