Expand description
Bundled Redfish/Swordfish CSDL schemas plus shared helpers for nv-redfish workspace build scripts.
Path constants and resolvers point at the bundled CSDL files relative to
this crate’s manifest directory. Build helpers consolidate the patterns
that are otherwise duplicated across every build.rs in the workspace.
Constants§
- OEM_DIR
- Directory holding the nv-redfish workspace’s own OEM CSDL schemas.
- REDFISH_
CSDL_ DIR - Directory holding the bundled DMTF Redfish CSDL schemas.
- SWORDFISH_
CSDL_ DIR - Directory holding the bundled SNIA Swordfish CSDL schemas.
Functions§
- cargo_
feature_ enabled - Returns
trueiff Cargo setCARGO_FEATURE_<NAME>for the current build. - glob_
oem_ xml - Return absolute paths for every
*.xmlfile directly inside the OEM directoryvendor. - glob_
redfish_ xml - Return absolute paths for every
*.xmlfile directly insideREDFISH_CSDL_DIR. - glob_
swordfish_ xml - Return absolute paths for every
*.xmlfile directly insideSWORDFISH_CSDL_DIR. - oem_
schema - Resolve
nameinside the OEM directoryvendor(e.g.oem_schema("dell", "DellAttributes_v1.xml")) to an absolute path insideOEM_DIR. - out_dir
- Returns the value of the
OUT_DIRenvironment variable Cargo sets for build scripts. - redfish_
schema - Resolve
name(e.g."RedfishError_v1.xml") to an absolute path insideREDFISH_CSDL_DIR. - rerun_
for - Emit
cargo:rerun-if-changedfor every path inpaths. - run_
with_ big_ stack - Run
fon a worker thread with a 16 MB stack and propagate panics. - swordfish_
schema - Resolve
nameto an absolute path insideSWORDFISH_CSDL_DIR.