Skip to content

Commit 22128f3

Browse files
committed
Add [workspace] to excluded packages for worktree compatibility
rust_wasm_samples, hyperlight_wasm_macro, and component_sample were missing empty [workspace] tables in their Cargo.toml files. Without this, Cargo resolves to the main checkout's workspace root when run from a git worktree, causing 'believes it's in a workspace' errors. wasm_runtime already had this marker. Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent a1dcdd4 commit 22128f3

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/component_sample/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ world = "example"
1818

1919
[package.metadata.component.target.dependencies]
2020

21+
[workspace] # indicate that this crate is not part of any workspace

src/hyperlight_wasm_runtime/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub extern "C" fn hyperlight_main() {
130130

131131
register_function(GuestFunctionDefinition::new(
132132
"InitWasmRuntime".to_string(),
133-
vec![],
133+
vec![ParameterType::VecBytes],
134134
ReturnType::Int,
135135
init_wasm_runtime as usize,
136136
));

src/rust_wasm_samples/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ opt-level = 'z'
1414
strip = true
1515

1616

17+
[workspace] # indicate that this crate is not part of any workspace
18+
1719
[dependencies]
1820

0 commit comments

Comments
 (0)