[package]
edition = "2024"
rust-version = "1.99"
name = "einvoice-validator"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validate EN 16931 and Peppol BIS Billing 3.0 e-invoices against the official validation artefacts, in pure Rust"
homepage = "https://einvoice-validator.github.io/"
documentation = "https://docs.rs/einvoice-validator"
readme = "README.md"
keywords = [
"peppol",
"en16931",
"ubl",
"cii",
"schematron",
]
categories = [
"finance",
"parser-implementations",
"wasm",
]
license = "MIT AND EUPL-1.2 AND LicenseRef-OASIS-Copyright-Notice AND LicenseRef-UN-CEFACT-Copyright-Notice AND W3C-19980720"
repository = "https://github.com/einvoice-validator/einvoice-validator"
[features]
cen-cii = []
cen-ubl = []
default = [
"cen-ubl",
"cen-cii",
"pdf",
]
fetch = [
"dep:einvoice-schematron",
"dep:miniz_oxide",
"dep:rustls",
"dep:webpki-roots",
"dep:aes-gcm",
"dep:chacha20poly1305",
"dep:ecdsa",
"dep:getrandom",
"dep:hmac",
"dep:p256",
"dep:p384",
"dep:rsa",
]
pdf = ["dep:einvoice-pdf"]
[lib]
name = "einvoice_validator"
path = "src/lib.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
required-features = ["cen-ubl"]
[[example]]
name = "encoding-oracle"
path = "examples/encoding-oracle.rs"
[[example]]
name = "footprint"
path = "examples/footprint.rs"
required-features = ["cen-ubl"]
[[example]]
name = "heap"
path = "examples/heap.rs"
required-features = ["cen-ubl"]
[[example]]
name = "wasm-validate"
path = "examples/wasm-validate.rs"
required-features = ["cen-ubl"]
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "cen_corpus"
path = "tests/cen_corpus.rs"
[[test]]
name = "cii_corpus"
path = "tests/cii_corpus.rs"
[[test]]
name = "depth"
path = "tests/depth.rs"
[[test]]
name = "encodings"
path = "tests/encodings.rs"
[[test]]
name = "footprint"
path = "tests/footprint.rs"
[[test]]
name = "pdf"
path = "tests/pdf.rs"
[[test]]
name = "properties"
path = "tests/properties.rs"
[[test]]
name = "rulesets"
path = "tests/rulesets.rs"
required-features = ["fetch"]
[[test]]
name = "vendored"
path = "tests/vendored.rs"
[dependencies.einvoice-pdf]
version = "0.4.0"
optional = true
[dependencies.einvoice-svrl]
version = "0.4.0"
[dependencies.einvoice-xml]
version = "0.4.0"
[dependencies.einvoice-xpath]
version = "0.4.0"
[dependencies.einvoice-xpath-eval]
version = "0.4.0"
[dependencies.einvoice-xsd]
version = "0.4.0"
[dependencies.einvoice-xslt]
version = "0.4.0"
[dependencies.einvoice-xslt-exec]
version = "0.4.0"
[dependencies.sha2]
version = "0.11.1"
[dev-dependencies.peak_alloc]
version = "0.3.0"
[dev-dependencies.roxmltree]
version = "0.21.2"
[target.'cfg(not(target_family = "wasm"))'.dependencies.aes-gcm]
version = "0.11.1"
features = ["aes"]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.chacha20poly1305]
version = "0.11.0"
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.ecdsa]
version = "0.17.0"
features = ["der"]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.einvoice-schematron]
version = "0.4.0"
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies.getrandom]
version = "0.4.3"
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.hmac]
version = "0.13.0"
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.miniz_oxide]
version = "0.9.1"
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies.p256]
version = "0.14.0"
features = [
"ecdh",
"ecdsa",
]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.p384]
version = "0.14.0"
features = [
"ecdh",
"ecdsa",
]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.rsa]
version = "0.10.0"
features = [
"encoding",
"pkcs1v15",
"std",
]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.rustls]
version = "0.23.46"
features = [
"custom-provider",
"std",
"tls12",
]
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.webpki-roots]
version = "1.0.11"
optional = true
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.proptest]
version = "1.12.0"
features = ["std"]
default-features = false
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
expect_used = "deny"
panic = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_debug_implementations = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
warnings = "deny"