mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-27 23:55:56 -05:00
c547a49ac8
I'm tired of all the boilerplate, so use the new GPL-3.0-linking-exception license identifier instead in all the server components. I left the ui stuff alone because I'm just going to replace it (#111). Add a checker for the header because it's easy to forget.
16 lines
599 B
Rust
16 lines
599 B
Rust
// This file is part of Moonfire NVR, a security camera network video recorder.
|
|
// 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.
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
Ok(protobuf_codegen_pure::Codegen::new()
|
|
.out_dir(std::env::var("OUT_DIR")?)
|
|
.inputs(&["proto/schema.proto"])
|
|
.include("proto")
|
|
.customize(protobuf_codegen_pure::Customize {
|
|
gen_mod_rs: Some(true),
|
|
..Default::default()
|
|
})
|
|
.run()?)
|
|
}
|