File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
arroyo-compiler-service/src Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,13 @@ impl CompilerGrpc for CompileService {
355
355
. await
356
356
. map_err ( |e| Status :: internal ( format ! ( "Writing UDFs failed: {}" , e) ) ) ?;
357
357
358
+ // udfs depend on arroyo-types::UdfContext, so the types crate needs to export it
359
+ tokio:: fs:: write (
360
+ self . build_dir . join ( "types/src/lib.rs" ) ,
361
+ "pub use arroyo_types::UdfContext;" ,
362
+ )
363
+ . await ?;
364
+
358
365
let output = Command :: new ( "cargo" )
359
366
. current_dir ( & udf_build_dir)
360
367
. arg ( "check" )
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ impl ProgramCompiler {
91
91
92
92
quote ! {
93
93
use std:: time:: SystemTime ;
94
+ pub use arroyo_types:: UdfContext ;
94
95
95
96
#( #structs ) *
96
97
}
Original file line number Diff line number Diff line change @@ -686,7 +686,7 @@ impl ControllerServer {
686
686
}
687
687
688
688
fn cargo_toml ( name : & str , dependencies : & str ) -> String {
689
- let arroyo_types = "arroyo- types = { path = \" ../../../arroyo- types\" }" ;
689
+ let types_dep = "types = { path = \" ../../types\" }" ;
690
690
691
691
format ! (
692
692
r#"
@@ -698,7 +698,7 @@ edition = "2021"
698
698
{}
699
699
{}
700
700
"# ,
701
- name, dependencies, arroyo_types
701
+ name, dependencies, types_dep
702
702
)
703
703
}
704
704
You can’t perform that action at this time.
0 commit comments