build.rs 370 Bytes
Newer Older
Ryan Olson's avatar
Ryan Olson committed
1
2
3
4
5
6
7
8
9
10
11
// SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Only compile proto files if grpc feature is enabled
    #[cfg(feature = "grpc")]
    {
        tonic_build::compile_protos("proto/velo.proto")?;
    }
    Ok(())
}