Skip to main content

nv_redfish_schema/
lib.rs

1// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2// SPDX-License-Identifier: Apache-2.0
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Bundled Redfish/Swordfish CSDL schemas plus shared helpers for nv-redfish
17//! workspace build scripts.
18//!
19//! Path constants and resolvers point at the bundled CSDL files relative to
20//! this crate's manifest directory. Build helpers consolidate the patterns
21//! that are otherwise duplicated across every `build.rs` in the workspace.
22
23mod build_helpers;
24mod paths;
25
26pub use build_helpers::{cargo_feature_enabled, out_dir, rerun_for, run_with_big_stack};
27pub use paths::{
28    glob_oem_xml, glob_redfish_xml, glob_swordfish_xml, oem_schema, redfish_schema,
29    swordfish_schema, OEM_DIR, REDFISH_CSDL_DIR, SWORDFISH_CSDL_DIR,
30};