dfe 0.7.0

DFE - Documentos Fiscais EletrĂ´nicos Brasileiros
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "dfe"
version = "0.7.0"
build = false
exclude = [
    "dfe/manuais_sefaz/**",
    "dfe/shema/**",
    "dfe/thirdparty/**",
    "docs/**",
    "distribuicao-logs/**",
    "testes/**",
    ".claude/**",
    ".vscode/**",
    "sample55.xml",
    "sample65.xml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DFE - Documentos Fiscais EletrĂ´nicos Brasileiros"
homepage = "https://github.com/GustavoOta/dfe"
readme = "README.md"
keywords = [
    "rust",
    "nfe",
    "dfe",
]
categories = [
    "api-bindings",
    "parsing",
]
license = "MIT"
repository = "https://github.com/GustavoOta/dfe"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.vcpkg]
git = "https://github.com/microsoft/vcpkg"
branch = "master"
install = ["libxml2"]

[package.metadata.vcpkg.target.x86_64-pc-windows-msvc]
triplet = "x64-windows-static"
install = ["libxml2"]

[features]
danfe = [
    "dep:printpdf",
    "dep:image",
    "dep:barcoders",
    "dep:qrcodegen",
]
default = [
    "danfe",
    "escpos",
    "distribuicao",
]
distribuicao = ["dep:flate2"]
escpos = [
    "dep:font8x8",
    "dep:image",
    "dep:barcoders",
    "dep:qrcodegen",
]
sefaz-live = []

[lib]
name = "dfe"
path = "src/lib.rs"

[[test]]
name = "danfe"
path = "tests/danfe.rs"

[[test]]
name = "danfe_a4"
path = "tests/danfe_a4.rs"

[[test]]
name = "escpos"
path = "tests/escpos.rs"

[[test]]
name = "sefaz_live"
path = "tests/sefaz_live.rs"

[[test]]
name = "xml_extractor"
path = "tests/xml_extractor.rs"

[dependencies.barcoders]
version = "2.0.0"
optional = true

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.38"

[dependencies.chrono-tz]
version = "0.10.0"

[dependencies.flate2]
version = "1.0"
optional = true

[dependencies.font8x8]
version = "0.2"
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.image]
version = "0.24"
features = [
    "png",
    "jpeg",
]
optional = true
default-features = false

[dependencies.libxml]
version = "=0.3.3"

[dependencies.printpdf]
version = "0.7.0"
optional = true

[dependencies.qrcodegen]
version = "1.8"
optional = true

[dependencies.quick-xml]
version = "0.37.1"
features = [
    "encoding",
    "serialize",
]

[dependencies.rand]
version = "0.8.5"

[dependencies.regex]
version = "1.11.1"

[dependencies.reqwest]
version = "0.12.9"
features = [
    "native-tls",
    "json",
    "gzip",
    "blocking",
]

[dependencies.rust_decimal]
version = "1.38.0"

[dependencies.serde]
version = "1.0.215"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.133"

[dependencies.sha1]
version = "0.10.6"

[dependencies.sha2]
version = "0.10.8"

[dependencies.tokio]
version = "1.41.1"
features = ["full"]

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.insta]
version = "1"
features = ["filters"]

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Win32_Security_Cryptography",
    "Win32_Foundation",
    "Win32_Graphics_Printing",
    "Win32_Graphics_Gdi",
    "Win32_System_Time",
]

[profile.release]
debug = 0