{"id":13503052,"url":"https://github.com/risoflora/fiscalidade","last_synced_at":"2025-04-09T17:26:21.305Z","repository":{"id":57629921,"uuid":"236184508","full_name":"risoflora/fiscalidade","owner":"risoflora","description":"Biblioteca Rust para validação, assinatura e transmissão de XMLs para webservices SEFAZ.","archived":false,"fork":false,"pushed_at":"2025-01-25T17:56:32.000Z","size":73,"stargazers_count":29,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-02T15:09:18.827Z","etag":null,"topics":["dfe","mdfe","nfce","nfe","rust","sefaz","sped"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/risoflora.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-25T14:58:35.000Z","updated_at":"2025-02-12T13:12:58.000Z","dependencies_parsed_at":"2022-09-26T20:11:07.634Z","dependency_job_id":null,"html_url":"https://github.com/risoflora/fiscalidade","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Ffiscalidade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Ffiscalidade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Ffiscalidade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/risoflora%2Ffiscalidade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/risoflora","download_url":"https://codeload.github.com/risoflora/fiscalidade/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248076222,"owners_count":21043732,"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":["dfe","mdfe","nfce","nfe","rust","sefaz","sped"],"created_at":"2024-07-31T22:02:34.996Z","updated_at":"2025-04-09T17:26:21.288Z","avatar_url":"https://github.com/risoflora.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# `fiscalidade`\n\nBiblioteca Rust para validação, assinatura e transmissão de XMLs para\nwebservices SEFAZ.\n\n## Exemplo\n\nO exemplo abaixo mostra como obter o _status_ do serviço de homologação para o\nMato Grosso:\n\n```rust\nuse fiscalidade::{Ambiente, Dfe, Modelo, Pkcs12Certificate, Uf, WebServices};\n\n#[tokio::main]\nasync fn main() {\n    let webservices = WebServices::from_embedded().unwrap();\n    let pkcs12 = Pkcs12Certificate::from_file(\"resources/certificado.pfx\", \"minha-senha-secreta\")\n        .await\n        .unwrap();\n    let dfe = Dfe::new().set_webservices(webservices).set_pkcs12(pkcs12);\n    let xml = dfe\n        .status_servico(Modelo::Nfe, Uf::Mt, Ambiente::Homologacao)\n        .await\n        .unwrap();\n    println!(\"XML retornado: {}\", xml);\n}\n```\n\n## Uso\n\nAdicione isto em seu `Cargo.toml`:\n\n```toml\n[dependencies]\ntokio = { version = \"1\", features = [\"full\"] }\nfiscalidade = \"0.7\"\n```\n\n## _Wishlist_\n\n- [x] Status do serviço\n- [x] Consulta de cadastro\n- [x] Consulta de XML\n- [x] Leitura de certificado P12\n- [x] Conexão segura usando biblioteca TLS _padrão_ do sistema\n- [x] Configuração de _timeout_ da conexão e da comunicação com o webservice\n- [x] Embutir arquivo de webservices na biblioteca\n- [x] Verificar se recursos (envelope, URLs etc.) estão atualizados\n- [x] Chamadas async\n- [ ] Validação e assinatura de XML\n- [ ] Implementar \"health check\"\n- [ ] Adicionar exemplo de consulta de cadastro\n- [ ] Tentativas de comunicação com o webservice\n- [ ] Mais serviços como envio de lote, consulta de recibo, inutilização,\n      distribuição de DFe, etc.\n- [ ] Compressão no envio de lote\n- [ ] Testes\n- [ ] Documentação\n- [ ] Mais exemplos\n- [ ] Proxy\n- [ ] GitHub Actions\n- [ ] DANFE\n\n## Contribuições\n\nPull Requests e Issues são sempre bem-vindos! =)\n\n## Licença\n\n`fiscalidade` é distribuída sob qualquer uma das seguintes licenças:\n\n- [Apache License 2.0](LICENSE-APACHE)\n- [MIT License](LICENSE-MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisoflora%2Ffiscalidade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frisoflora%2Ffiscalidade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frisoflora%2Ffiscalidade/lists"}