pub use einvoice_xsd::Licence;
const MIT: Licence = Licence {
id: "MIT",
covers: "the code of einvoice-validator and of the crates of the project it is built \
from (einvoice-svrl, einvoice-xdm, einvoice-xpath, einvoice-xpath-eval, \
einvoice-xsd, einvoice-xslt, einvoice-xslt-exec)",
text: include_str!("../LICENSES/MIT.txt"),
};
#[cfg(feature = "cen-ubl")]
const EUPL: Licence = Licence {
id: "EUPL-1.2",
covers: "the CEN EN 16931 UBL validation stylesheet, release 1.3.17 \
(ubl/xslt/EN16931-UBL-validation.xslt, unmodified), published by CEN/TC 434 \
and embedded by einvoice-validator as the built-in rule set cen-ubl",
text: include_str!("../LICENSES/EUPL-1.2.txt"),
};
#[must_use]
pub fn licences() -> Vec<Licence> {
let mut out = vec![MIT];
#[cfg(feature = "cen-ubl")]
out.push(EUPL);
out.extend(
einvoice_xsd::LICENCES
.iter()
.filter(|l| l.id != "MIT")
.copied(),
);
out
}