Skip to main content

a2a_pb/
lib.rs

1// Copyright AGNTCY Contributors (https://github.com/agntcy)
2// SPDX-License-Identifier: Apache-2.0
3/// Generated protobuf types for the A2A v1 protocol.
4pub mod proto {
5    include!("gen/lf.a2a.v1.rs");
6}
7
8/// ProtoJSON-capable generated protobuf types for the A2A v1 protocol.
9pub mod protojson {
10    // Generated serde code emits `write!(f, "...", &FIELDS)`, which newer
11    // clippy flags as a useless borrow. Suppress it for the generated module.
12    // `unknown_lints` keeps this compiling on clippy versions predating the lint.
13    #![allow(unknown_lints)]
14    #![allow(clippy::useless_borrows_in_formatting)]
15
16    include!(concat!(env!("OUT_DIR"), "/lf.a2a.v1.rs"));
17    include!(concat!(env!("OUT_DIR"), "/lf.a2a.v1.serde.rs"));
18}
19
20pub mod pbconv;
21pub mod protojson_conv;
22
23pub use proto::*;