Skip to content
Open
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
28 changes: 24 additions & 4 deletions .github/workflows/CreateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,39 @@ jobs:
if: ${{ contains(github.ref, 'refs/heads/release/') }}
uses: rust-lang/crates-io-auth-action@v1
id: crates-io-auth
- name: Install cargo-overlay-registry
if: ${{ contains(github.ref, 'refs/heads/release/') }}
run: cargo install cargo-overlay-registry
shell: bash
- name: Publish dry-run
if: ${{ contains(github.ref, 'refs/heads/release/') }}
run: |
set -euxo pipefail
cargo publish -p hyperlight-wasm-aot --dry-run
cargo publish -p hyperlight-wasm --dry-run
rm -Rf ./target/package/tmp-registry
cargo overlay-registry \
-r crates-io \
-r local=./target/package/tmp-registry \
-- \
cargo +1.92 publish --dry-run \
-p hyperlight-wasm-aot \
-p hyperlight-wasm-macro \
-p hyperlight-wasm-runtime \
-p hyperlight-wasm
shell: bash
- name: Publish to crates.io
if: ${{ contains(github.ref, 'refs/heads/release/') }}
run: |
set -euxo pipefail
cargo publish -p hyperlight-wasm-aot
cargo publish -p hyperlight-wasm
rm -Rf ./target/package/tmp-registry
cargo overlay-registry \
-r crates-io \
-r local=./target/package/tmp-registry \
-- \
cargo +1.92 publish \
-p hyperlight-wasm-aot \
-p hyperlight-wasm-macro \
-p hyperlight-wasm-runtime \
-p hyperlight-wasm
env:
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
shell: bash
48 changes: 28 additions & 20 deletions Cargo.lock

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

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = [ "src/tests/rust_guests/rust_wasm_samples", "src/tests/rust_guests/co
resolver = "2"

[workspace.package]
version = "0.13.0"
version = "0.13.1"
edition = "2024"
rust-version = "1.89"
license = "Apache-2.0"
Expand All @@ -13,11 +13,11 @@ repository = "https://github.com/hyperlight-dev/hyperlight-wasm"
readme = "README.md"

[workspace.dependencies]
hyperlight-common = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec", default-features = false }
hyperlight-component-macro = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec" }
hyperlight-component-util = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec" }
hyperlight-guest = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec" }
hyperlight-guest-bin = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec", features = [ "printf" ] }
hyperlight-host = { git = "https://github.com/hyperlight-dev/hyperlight", rev = "c9a1a4cefce6a085af92e375121e9f1b1c8deeec", default-features = false, features = ["executable_heap"] }
hyperlight-wasm-macro = { version = "0.13.0", path = "src/hyperlight_wasm_macro" }
hyperlight-wasm-runtime = { version = "0.13.0", path = "src/hyperlight_wasm_runtime" }
hyperlight-common = { version = "0.13.1", default-features = false }
hyperlight-component-macro = { version = "0.13.1" }
hyperlight-component-util = { version = "0.13.1" }
hyperlight-guest = { version = "0.13.1" }
hyperlight-guest-bin = { version = "0.13.1", features = [ "printf" ] }
hyperlight-host = { version = "0.13.1", default-features = false, features = ["executable_heap"] }
hyperlight-wasm-macro = { version = "0.13.1", path = "src/hyperlight_wasm_macro" }
hyperlight-wasm-runtime = { version = "0.13.1", path = "src/hyperlight_wasm_runtime" }
3 changes: 1 addition & 2 deletions src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl WasmSandbox {
.as_mut()
.ok_or_else(|| new_error!("WasmSandbox is None"))?;

if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA) {
if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA, None) {
inner.call::<()>("LoadWasmModulePhys", (MAPPED_BINARY_VA, len))?;
} else {
let wasm_bytes = std::fs::read(file)?;
Expand All @@ -108,7 +108,6 @@ impl WasmSandbox {
/// It is the caller's responsibility to ensure that the host side
/// of the region remains intact and is not written to until the
/// produced LoadedWasmSandbox is discarded or devolved.
#[cfg(target_os = "linux")]
pub unsafe fn load_module_by_mapping(
mut self,
base: *mut libc::c_void,
Expand Down
3 changes: 3 additions & 0 deletions src/hyperlight_wasm_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ homepage.workspace = true
repository.workspace = true
readme.workspace = true
edition = "2021"
description = """
hyperlight-wasm-runtime is a rust binary crate that provides the WebAssembly runtime binary for hyperlight-wasm.
"""

[lib]
test = false
Expand Down
Loading