2019-06-19 19:53:14 -04:00
|
|
|
// This file is part of Moonfire NVR, a security camera network video recorder.
|
2021-02-17 16:28:48 -05:00
|
|
|
// Copyright (C) 2020 The Moonfire NVR Authors; see AUTHORS and LICENSE.txt.
|
|
|
|
// SPDX-License-Identifier: GPL-v3.0-or-later WITH GPL-3.0-linking-exception.
|
2019-06-19 19:53:14 -04:00
|
|
|
|
2021-01-15 12:54:10 -05:00
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
2022-03-08 14:22:01 -05:00
|
|
|
Ok(protobuf_codegen::Codegen::new()
|
|
|
|
.pure()
|
2021-01-15 12:54:10 -05:00
|
|
|
.out_dir(std::env::var("OUT_DIR")?)
|
2019-06-19 19:53:14 -04:00
|
|
|
.inputs(&["proto/schema.proto"])
|
|
|
|
.include("proto")
|
2022-03-08 14:22:01 -05:00
|
|
|
.customize(protobuf_codegen::Customize::default().gen_mod_rs(true))
|
2021-01-15 12:54:10 -05:00
|
|
|
.run()?)
|
2019-06-19 19:53:14 -04:00
|
|
|
}
|