Skip to main content

Crate nv_redfish_schema

Crate nv_redfish_schema 

Source
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 true iff Cargo set CARGO_FEATURE_<NAME> for the current build.
glob_oem_xml
Return absolute paths for every *.xml file directly inside the OEM directory vendor.
glob_redfish_xml
Return absolute paths for every *.xml file directly inside REDFISH_CSDL_DIR.
glob_swordfish_xml
Return absolute paths for every *.xml file directly inside SWORDFISH_CSDL_DIR.
oem_schema
Resolve name inside the OEM directory vendor (e.g. oem_schema("dell", "DellAttributes_v1.xml")) to an absolute path inside OEM_DIR.
out_dir
Returns the value of the OUT_DIR environment variable Cargo sets for build scripts.
redfish_schema
Resolve name (e.g. "RedfishError_v1.xml") to an absolute path inside REDFISH_CSDL_DIR.
rerun_for
Emit cargo:rerun-if-changed for every path in paths.
run_with_big_stack
Run f on a worker thread with a 16 MB stack and propagate panics.
swordfish_schema
Resolve name to an absolute path inside SWORDFISH_CSDL_DIR.