From b44162489631fffb043b79428b2db66cb27377fa Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sat, 27 Jun 2026 16:07:30 -0400 Subject: [PATCH 1/3] chore: bump hyperlight-* dependencies to 0.16.0 hyperlight-host 0.16.0 publishes the OCI-format snapshot save/load API (PR #1465) that downstream integrators need for cross-host snapshot persistence. Tracking that release here so the wasm wrapper exposes the new Snapshot surface unchanged. Signed-off-by: Yordis Prieto --- Cargo.lock | 356 +++++++++++++++++++++++++++++++++++++++++------------ Cargo.toml | 12 +- 2 files changed, 281 insertions(+), 87 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b86ff39..353f9254 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,9 +186,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bindgen" -version = "0.71.1" +version = "0.72.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f58bf3d7db68cfbac37cfc485a8d711e87e064c3d0fe0435b92f7a407f9d6b3" +checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" dependencies = [ "bitflags 2.13.0", "cexpr", @@ -239,6 +239,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + [[package]] name = "bstr" version = "1.12.1" @@ -277,6 +286,26 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "bytes" version = "1.11.1" @@ -533,6 +562,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + [[package]] name = "const_format" version = "0.2.35" @@ -985,14 +1020,100 @@ dependencies = [ "typenum", ] +[[package]] +name = "crypto-common" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "darling" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.20.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "derive_builder" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" +dependencies = [ + "derive_builder_macro", +] + +[[package]] +name = "derive_builder_core" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "derive_builder_macro" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" +dependencies = [ + "derive_builder_core", + "syn", +] + [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer", - "crypto-common", + "block-buffer 0.10.4", + "crypto-common 0.1.7", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer 0.12.1", + "const-oid", + "crypto-common 0.2.2", ] [[package]] @@ -1183,6 +1304,12 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flatbuffers" version = "25.12.19" @@ -1384,6 +1511,17 @@ dependencies = [ "wasip3", ] +[[package]] +name = "getset" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cf442baaabe4213ce7d1239afc26c039180b6456da2cededa316ae2c8a77a77" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "gimli" version = "0.32.3" @@ -1521,6 +1659,12 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + [[package]] name = "http" version = "1.4.0" @@ -1566,6 +1710,15 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +[[package]] +name = "hybrid-array" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "818356c5132c1fede50f837ca96afbe78ff42413047f4abb886217845e1b6c8c" +dependencies = [ + "typenum", +] + [[package]] name = "hyper" version = "1.9.0" @@ -1643,14 +1796,19 @@ dependencies = [ [[package]] name = "hyperlight-common" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a29190c35e3883c3e0944007f47a0997f8ebcf784a2a3f35c0311e513b019416" +checksum = "436dac5cc08da3db27de38b174a9b22498ab6443aaffd83b97f66a5d2f1d74cc" dependencies = [ "anyhow", + "bitflags 2.13.0", + "bytemuck", + "bytes", + "fixedbitset", "flatbuffers", "log", - "spin 0.10.0", + "smallvec", + "spin 0.12.0", "thiserror", "tracing", "tracing-core", @@ -1658,40 +1816,39 @@ dependencies = [ [[package]] name = "hyperlight-component-macro" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956a19ec0312f6ed60f54ae0a1253bf7f7f2f3f83b43d11309ff12f07ce43cfb" +checksum = "4ae6cf9e1776e499e89fdcf1112ba4c700ce16dca8487a2e44023a69bc7c8a8f" dependencies = [ "env_logger", "hyperlight-component-util", - "itertools 0.14.0", + "itertools 0.15.0", "prettyplease", "proc-macro2", "quote", "syn", - "wasmparser 0.248.0", ] [[package]] name = "hyperlight-component-util" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4066c05c73d5eecdcd7d31e106df789f7f74d6a5cfde5b4df7d54dd66e8ae442" +checksum = "ba99aad377f5997acf9cced7b189fc03f89f9653732103a17cfa4490404193d5" dependencies = [ - "itertools 0.14.0", + "itertools 0.15.0", "prettyplease", "proc-macro2", "quote", "syn", "tracing", - "wasmparser 0.248.0", + "wasmparser 0.252.0", ] [[package]] name = "hyperlight-guest" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82a676e88a6640b5cf621171c67f609d1e662713624562597518be6fdb0e0b30" +checksum = "4cb2e6548e2b837400a7b27a5ed6a6570c28801253e6ec80959700dd63925c40" dependencies = [ "anyhow", "flatbuffers", @@ -1703,9 +1860,9 @@ dependencies = [ [[package]] name = "hyperlight-guest-bin" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bc349c61dc771769308a2079d398488cd0c52d9bdcad8cf633922b288dd2aed" +checksum = "cdeccde6490e76aefe2e8ca17e1a225d2da3338f020f17533b8ee0cee7cf9a11" dependencies = [ "buddy_system_allocator", "flatbuffers", @@ -1716,15 +1873,15 @@ dependencies = [ "hyperlight-libc", "linkme", "log", - "spin 0.10.0", + "spin 0.12.0", "tracing", ] [[package]] name = "hyperlight-guest-macro" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bef332d8490f2ebe5b8d52f7d39263f82580c54e9505980fea8186fd6679ea3" +checksum = "620ed77c5c07027c63a6a741da8a9a2462a56e660691da715c3700cb281a3d23" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -1734,25 +1891,26 @@ dependencies = [ [[package]] name = "hyperlight-guest-tracing" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca03b1ccd29c0c277555d8bd737257d0598554004f9667bb196227d5ed8b5b7e" +checksum = "d8b39160c2001db5c79916d946d04a601e4e1f2827e2c785d477b31e48f5e514" dependencies = [ "hyperlight-common", - "spin 0.10.0", + "spin 0.12.0", "tracing", "tracing-core", ] [[package]] name = "hyperlight-host" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634584fae781c9ea278a13f1fbecd25d220c543cfb5bbbbc496b7e30fc97c251" +checksum = "ef3edc7875e70a3b5cc291a17f78cfc352e24c9a665a5a1bbdbc46ada3df43b5" dependencies = [ "anyhow", "bitflags 2.13.0", "blake3", + "bytemuck", "cfg-if", "cfg_aliases", "chrono", @@ -1762,6 +1920,7 @@ dependencies = [ "gdbstub", "gdbstub_arch", "goblin", + "hex", "hyperlight-common", "hyperlight-guest-tracing", "kvm-bindings", @@ -1772,17 +1931,20 @@ dependencies = [ "metrics", "mshv-bindings", "mshv-ioctls", - "opentelemetry 0.31.0", + "oci-spec", + "opentelemetry", "page_size", "rand 0.10.0", "rust-embed", + "serde", "serde_json", + "sha2 0.11.0", + "tempfile", "termcolor", "thiserror", "tracing", "tracing-core", - "tracing-log", - "tracing-opentelemetry 0.32.1", + "tracing-opentelemetry", "uuid", "vmm-sys-util", "windows", @@ -1793,9 +1955,9 @@ dependencies = [ [[package]] name = "hyperlight-libc" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dd6f523d9383e9c8b3820bb141b4deb45b5470135ee069cbc387c3a2a3d55c7" +checksum = "3c258315b4c0ec4aae172c4ff31b34590559fb6699c144f779be2246672b3147" dependencies = [ "anyhow", "bindgen", @@ -1830,7 +1992,7 @@ dependencies = [ "metrics-exporter-prometheus", "metrics-util", "once_cell", - "opentelemetry 0.32.0", + "opentelemetry", "opentelemetry-otlp", "opentelemetry-semantic-conventions", "opentelemetry_sdk", @@ -1842,7 +2004,7 @@ dependencies = [ "toml", "tracing", "tracing-forest", - "tracing-opentelemetry 0.33.0", + "tracing-opentelemetry", "tracing-subscriber", "uuid", "windows", @@ -2001,6 +2163,12 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "idna" version = "1.1.0" @@ -2147,18 +2315,18 @@ dependencies = [ [[package]] name = "kvm-bindings" -version = "0.14.0" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b3c06ff73c7ce03e780887ec2389d62d2a2a9ddf471ab05c2ff69207cd3f3b4" +checksum = "11cf0ca75d59e9d298647c59cf6c5286fa048120caa77972a7a504a0824d234f" dependencies = [ "vmm-sys-util", ] [[package]] name = "kvm-ioctls" -version = "0.24.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "333f77a20344a448f3f70664918135fddeb804e938f28a99d685bd92926e0b19" +checksum = "06ac372c120eb893b086d1a12027669cf2b478d1f71204021ffa7adf57948d63" dependencies = [ "bitflags 2.13.0", "kvm-bindings", @@ -2535,6 +2703,23 @@ dependencies = [ "memchr", ] +[[package]] +name = "oci-spec" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3df6f876ad774d6a676f7e968f5c3edacc32f90e65fe680a8b686235396556fb" +dependencies = [ + "const_format", + "derive_builder", + "getset", + "regex", + "serde", + "serde_json", + "strum", + "strum_macros", + "thiserror", +] + [[package]] name = "once_cell" version = "1.21.4" @@ -2559,20 +2744,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" -[[package]] -name = "opentelemetry" -version = "0.31.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84bcd6ae87133e903af7ef497404dda70c60d0ea14895fc8a5e6722754fc2a0" -dependencies = [ - "futures-core", - "futures-sink", - "js-sys", - "pin-project-lite", - "thiserror", - "tracing", -] - [[package]] name = "opentelemetry" version = "0.32.0" @@ -2596,7 +2767,7 @@ dependencies = [ "async-trait", "bytes", "http", - "opentelemetry 0.32.0", + "opentelemetry", "reqwest", ] @@ -2607,7 +2778,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9966929966d17620d7c316c643ba62631826e10021409357772d5eea84f62c35" dependencies = [ "http", - "opentelemetry 0.32.0", + "opentelemetry", "opentelemetry-http", "opentelemetry-proto", "opentelemetry_sdk", @@ -2625,7 +2796,7 @@ version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "56d658ba1faf63f7b9c492cfbe6e0ec365440a16132d3270c1065f7b33f1b638" dependencies = [ - "opentelemetry 0.32.0", + "opentelemetry", "opentelemetry_sdk", "prost", "tonic", @@ -2647,7 +2818,7 @@ dependencies = [ "futures-channel", "futures-executor", "futures-util", - "opentelemetry 0.32.0", + "opentelemetry", "percent-encoding", "portable-atomic", "rand 0.9.4", @@ -3253,7 +3424,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bcdef0be6fe7f6fa333b1073c949729274b05f123a0ad7efcb8efd878e5c3b1" dependencies = [ "globset", - "sha2", + "sha2 0.10.9", "walkdir", ] @@ -3509,7 +3680,18 @@ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" dependencies = [ "cfg-if", "cpufeatures 0.2.17", - "digest", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4" +dependencies = [ + "cfg-if", + "cpufeatures 0.3.0", + "digest 0.11.3", ] [[package]] @@ -3588,9 +3770,6 @@ name = "spin" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5fe4ccb98d9c292d56fec89a5e07da7fc4cf0dc11e156b41793132775d3e591" -dependencies = [ - "lock_api", -] [[package]] name = "spin" @@ -3613,6 +3792,24 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "strum" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" + +[[package]] +name = "strum_macros" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "subtle" version = "2.6.1" @@ -4007,22 +4204,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-opentelemetry" -version = "0.32.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ac28f2d093c6c477eaa76b23525478f38de514fa9aeb1285738d4b97a9552fc" -dependencies = [ - "js-sys", - "opentelemetry 0.31.0", - "smallvec", - "tracing", - "tracing-core", - "tracing-log", - "tracing-subscriber", - "web-time", -] - [[package]] name = "tracing-opentelemetry" version = "0.33.0" @@ -4030,7 +4211,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adbc64cba7137545b8044cb1fe9814f7aacf3c6b5f9b45be8bb5db538befdb26" dependencies = [ "js-sys", - "opentelemetry 0.32.0", + "opentelemetry", "smallvec", "tracing", "tracing-core", @@ -4071,9 +4252,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" [[package]] name = "typenum" -version = "1.19.0" +version = "1.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" [[package]] name = "unicode-ident" @@ -4341,6 +4522,19 @@ dependencies = [ "serde", ] +[[package]] +name = "wasmparser" +version = "0.252.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3eb099dcadcde5be9eef55e3a337128efd4e44b4c93122487e4d2e4e1c6627c" +dependencies = [ + "bitflags 2.13.0", + "hashbrown 0.17.0", + "indexmap", + "semver", + "serde", +] + [[package]] name = "wasmprinter" version = "0.236.1" @@ -4497,7 +4691,7 @@ dependencies = [ "semver", "serde", "serde_derive", - "sha2", + "sha2 0.10.9", "smallvec", "target-lexicon", "wasm-encoder 0.248.0", diff --git a/Cargo.toml b/Cargo.toml index ee376e3f..c47791e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,11 +13,11 @@ repository = "https://github.com/hyperlight-dev/hyperlight-wasm" readme = "README.md" [workspace.dependencies] -hyperlight-common = { version = "0.15.0", default-features = false } -hyperlight-component-macro = { version = "0.15.0" } -hyperlight-component-util = { version = "0.15.0" } -hyperlight-guest = { version = "0.15.0" } -hyperlight-guest-bin = { version = "0.15.0"} -hyperlight-host = { version = "0.15.0", default-features = false } +hyperlight-common = { version = "0.16.0", default-features = false } +hyperlight-component-macro = { version = "0.16.0" } +hyperlight-component-util = { version = "0.16.0" } +hyperlight-guest = { version = "0.16.0" } +hyperlight-guest-bin = { version = "0.16.0"} +hyperlight-host = { version = "0.16.0", default-features = false } hyperlight-wasm-macro = { version = "0.14.0", path = "src/hyperlight_wasm_macro" } hyperlight-wasm-runtime = { version = "0.14.0", path = "src/hyperlight_wasm_runtime" } From a0696472c53dc163191e951124d2067ab119c349 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sat, 27 Jun 2026 18:48:26 -0400 Subject: [PATCH 2/3] fix(wasm_sandbox): drop trailing None from map_file_cow call hyperlight-host 0.16.0 dropped the third `Option` argument on `MultiUseSandbox::map_file_cow`. Without this fix the bump to host 0.16 fails to compile with E0061 unexpected argument. Signed-off-by: Yordis Prieto --- src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs b/src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs index a47f566d..70817f58 100644 --- a/src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs +++ b/src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs @@ -226,7 +226,7 @@ impl WasmSandbox { self.clean_inner()?; self.inner.load_via_fn(|inner| { - if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA, None) { + if let Ok(len) = inner.map_file_cow(file.as_ref(), MAPPED_BINARY_VA) { inner.call::<()>("LoadWasmModulePhys", (MAPPED_BINARY_VA, len))?; } else { let wasm_bytes = std::fs::read(file)?; From 28b6c052eaf2c0eade8c73de48c530e29eccc422 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sat, 27 Jun 2026 18:51:10 -0400 Subject: [PATCH 3/3] feat(wasm): re-export OciTag, OciReference, OciDigest from snapshot These types are needed to call `Snapshot::save` / `Snapshot::load` from downstream crates that consume `hyperlight-wasm` directly. Without the re-export they sit in `hyperlight_host::sandbox::snapshot`, a private module path that downstream cannot reach without taking a direct dependency on `hyperlight-host` (which defeats the purpose of the wasm wrapper crate). Signed-off-by: Yordis Prieto --- src/hyperlight_wasm/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hyperlight_wasm/src/lib.rs b/src/hyperlight_wasm/src/lib.rs index c453d0af..263432b1 100644 --- a/src/hyperlight_wasm/src/lib.rs +++ b/src/hyperlight_wasm/src/lib.rs @@ -57,6 +57,11 @@ pub use hyperlight_host::is_hypervisor_present; pub use hyperlight_host::new_error; /// A snapshot of the memory of a sandbox at a given point in time. pub use hyperlight_host::sandbox::snapshot::Snapshot; +/// OCI Image Layout reference types used by [`Snapshot::save`] / +/// [`Snapshot::load`] to identify snapshots inside an OCI Image Layout +/// directory. Re-exported here so downstream crates do not need a +/// direct dependency on `hyperlight-host`. +pub use hyperlight_host::sandbox::snapshot::{OciDigest, OciReference, OciTag}; /// Get the build information for this version of hyperlight-wasm pub fn get_build_info() -> BuildInfo {