mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2024-12-26 23:25:55 -05:00
9d70d68710
I did a full `cargo upgrade` and fixed what it broke: * a couple things for the latest protobuf 3.0 alphas (note alphas don't promise API stability) * new minimum supported Rust version This should have some other nice effects: parking_lot now uses inline assembler, tokio has gotten faster, etc.
14 lines
552 B
Rust
14 lines
552 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::Codegen::new()
|
|
.pure()
|
|
.out_dir(std::env::var("OUT_DIR")?)
|
|
.inputs(&["proto/schema.proto"])
|
|
.include("proto")
|
|
.customize(protobuf_codegen::Customize::default().gen_mod_rs(true))
|
|
.run()?)
|
|
}
|