fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.build_server(false)
.build_client(true)
.type_attribute(
"temporal.api.history.v1.HistoryEvent.attributes",
"#[derive(::derive_more::From)]",
)
.type_attribute(
"temporal.api.command.v1.Command.attributes",
"#[derive(::derive_more::From)]",
)
.type_attribute(
"coresdk.workflow_commands.WorkflowCommand.variant",
"#[derive(::derive_more::From)]",
)
.type_attribute(
"coresdk.workflow_activation.wf_activation_job",
"#[derive(::derive_more::From)]",
)
.type_attribute(
"coresdk.workflow_activation.WFActivationJob.variant",
"#[derive(::derive_more::From)]",
)
.type_attribute(
"coresdk.workflow_completion.WFActivationCompletion.status",
"#[derive(::derive_more::From)]",
)
.type_attribute("coresdk.Task.variant", "#[derive(::derive_more::From)]")
.compile(
&[
"protos/local/core_interface.proto",
"protos/api_upstream/temporal/api/workflowservice/v1/service.proto",
],
&["protos/api_upstream", "protos/local"],
)?;
Ok(())
}