Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export CMAKE_GENERATOR := if os() == "windows" { "Ninja" } else { "" }
# DEFAULT runtime at compile time — it can't carry our native modules. A pinned
# release tag of the official repo is not a fork/branch. Bump together with the
# hyperlight-js-runtime crate version.
hyperlight-js-tag := "v0.3.3"
hyperlight-js-tag := "v0.4.0"

# Local checkout of the hyperlight-js source, cloned at hyperlight-js-tag.
hyperlight-src := justfile_dir() / "deps" / "hyperlight-js-src"
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 54 additions & 38 deletions src/code-validator/guest/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/code-validator/guest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ repository = "https://github.com/anthropics/hyperagent"

[workspace.dependencies]
# Hyperlight core crates — published on crates.io, pinned to the version that
# hyperlight-js 0.3.x builds against.
# hyperlight-js 0.4.x builds against. Update these crates together.
hyperlight-common = { version = "0.17.0", default-features = false }
hyperlight-guest-bin = { version = "0.16.0" }
hyperlight-guest = { version = "0.16.0" }
hyperlight-host = { version = "0.16.0", default-features = false, features = ["executable_heap", "kvm", "mshv3"] }
hyperlight-guest-bin = { version = "0.17.0" }
hyperlight-guest = { version = "0.17.0" }
Comment thread
simongdavies marked this conversation as resolved.
hyperlight-host = { version = "0.17.0", default-features = false, features = ["executable_heap", "kvm", "mshv3"] }

[profile.dev]
panic = "abort"
Expand Down
4 changes: 2 additions & 2 deletions src/code-validator/guest/host/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn call_guest_function_sync(function_name: &str, input: String) -> Result<String
config.set_output_data_size(GUEST_OUTPUT_SIZE);

// Create the guest binary from embedded bytes
let guest_binary = GuestBinary::Buffer(ANALYSIS_RUNTIME);
let guest_binary = GuestBinary::Buffer(ANALYSIS_RUNTIME.to_vec());

// Create uninitialized sandbox
let uninitialized = UninitializedSandbox::new(guest_binary, Some(config)).map_err(|e| {
Expand Down Expand Up @@ -152,7 +152,7 @@ fn call_guest_function_2_sync(
config.set_input_data_size(GUEST_INPUT_SIZE);
config.set_output_data_size(GUEST_OUTPUT_SIZE);

let guest_binary = GuestBinary::Buffer(ANALYSIS_RUNTIME);
let guest_binary = GuestBinary::Buffer(ANALYSIS_RUNTIME.to_vec());

let uninitialized = UninitializedSandbox::new(guest_binary, Some(config)).map_err(|e| {
Error::new(
Expand Down
Loading