Skip to content

Commit

Permalink
improve re-exports (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
JojiiOfficial committed Jun 28, 2024
1 parent 34ff45b commit b46b660
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/protos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ fn protos() {
additional_builder_derive_options(),
);

// import our manual builder here so all builder come from the same module in the end user API.
append_to_file(GRPC_OUTPUT_FILE, "pub use crate::manual_builder::*;");
append_to_file(GRPC_OUTPUT_FILE, "pub use crate::builder_types::*;");
append_to_file(
GRPC_OUTPUT_FILE,
// Re-export all custom builder here so they are all located in the same module in the end-user
// API.
let custom_reexports = [
"pub use crate::manual_builder::*;",
"pub use crate::builder_types::*;",
"pub use crate::qdrant_client::builders::*;",
);
];
append_to_file(GRPC_OUTPUT_FILE, &custom_reexports.join("\n"));

// Vendor gRPC types used in our objects
append_to_file(GRPC_OUTPUT_FILE, "pub use prost_types::Timestamp;");
Expand Down

0 comments on commit b46b660

Please sign in to comment.