ism-data 20230609.0.0

ODNI public XML schema metadata: package list and namespace registry. For schema files, see the per-package ism-{pkg} crates.
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented3 out of 8 items with examples
  • Size
  • Source code size: 39.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 371.78 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • marquetools/ism-data
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bashandbone

ism-data

Metadata-only meta-crate for the ODNI public XML schema set. Carries no data files. Use this crate to:

  • Enumerate the ODNI packages shipped by this workspace (PACKAGES).
  • Look up which package declares a given XML namespace (package_for_namespace, resolve_namespace).

Part of the ism-data workspace. Each ODNI package lives in its own ism-{pkg} crate.

Use

[build-dependencies]
ism-data    = { git = "https://github.com/marquetools/ism-data", tag = "v..." }
ism-ismcat  = { git = "https://github.com/marquetools/ism-data", tag = "v..." }
// build.rs
fn main() {
    let (pkg, rel) = ism_data::resolve_namespace("urn:schema:guide:schema:ismcat")
        .expect("ISMCAT schema-guide namespace is part of the ODNI set");
    // pkg = "ISMCAT", rel = "Schema/ISMCAT/SchemaGuideSchema.xsd"

    // Combine with the per-package crate's data:
    let path = ism_ismcat::package_root().join(rel);
    println!("cargo:rerun-if-changed={}", path.display());
    // ... pass to your codegen
}

License

Crate scaffolding: MIT-0 OR Unlicense. Schemas (in the per-package crates): U.S. Government public-domain works.