Skip to main content

a2a_pb/
lib.rs

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