Skip to content

Commit

Permalink
Fix micro_rpc cross workspace dependency (#4586)
Browse files Browse the repository at this point in the history
Add a manual test to check regressions in the future.

Ref #4573
  • Loading branch information
tiziano88 authored Jan 3, 2024
1 parent 38d4d58 commit d2788f6
Show file tree
Hide file tree
Showing 8 changed files with 545 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ members = [
exclude = [
"fuzz",
"enclave_applications",
"micro_rpc_workspace_test",
"oak_functions/loader/fuzz",
"oak_restricted_kernel_bin",
"oak_restricted_kernel_wrapper",
Expand Down
7 changes: 2 additions & 5 deletions micro_rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@

fn main() {
micro_rpc_build::compile(
&[format!(
"{}proto/micro_rpc/messages.proto",
env!("WORKSPACE_ROOT")
)],
&[env!("WORKSPACE_ROOT")],
&["../proto/micro_rpc/messages.proto"],
&["../proto"],
Default::default(),
);
}
2 changes: 2 additions & 0 deletions micro_rpc_workspace_test/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
WORKSPACE_ROOT = { value = "_INVALID_WORKSPACE_ROOT_" }
Loading

0 comments on commit d2788f6

Please sign in to comment.