Lints are declared once under [workspace.lints] and every crate opts in: clippy's default set, plus dbg!, todo! and unimplemented!, and unsafe code is forbidden. Every crate now inherits its version, licence, authors and repository from the workspace, so they no longer disagree (four were at 0.0.0). The poptrie module is unfinished and unused; it says so and expects the dead-code lint instead of warning on every build. Its construction method is renamed from new, which took &mut self, to build. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
13 lines
362 B
Rust
13 lines
362 B
Rust
use protobuf_codegen::Codegen;
|
|
|
|
fn main() {
|
|
Codegen::new()
|
|
// Parse the .proto in pure Rust so building needs no `protoc` binary
|
|
// on the machine (routers and minimal containers rarely have one).
|
|
.pure()
|
|
.input("proto/config.proto")
|
|
.includes(["proto"])
|
|
.cargo_out_dir("protos")
|
|
.run_from_script();
|
|
}
|