Skip to content

Commit 8b38958

Browse files
authored
Fix breaking changes for hyperlight js (#531)
* Add JsonConversionFailure back as it used by hyperlight-js Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com> * Add missing musl arch specific setjmp.h file Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com> --------- Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 0fda15c commit 8b38958

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typedef unsigned long __jmp_buf[8];

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ thiserror = "2.0.12"
4141
tempfile = { version = "3.20", optional = true }
4242
anyhow = "1.0"
4343
metrics = "0.24.2"
44+
serde_json = "1.0"
4445

4546
[target.'cfg(windows)'.dependencies]
4647
windows = { version = "0.61", features = [

src/hyperlight_host/src/error.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ pub enum HyperlightError {
155155
#[cfg(kvm)]
156156
KVMError(#[from] kvm_ioctls::Error),
157157

158+
/// Conversion of str to Json failed
159+
#[error("Conversion of str data to json failed")]
160+
JsonConversionFailure(#[from] serde_json::Error),
161+
158162
/// An attempt to get a lock from a Mutex failed.
159163
#[error("Unable to lock resource")]
160164
LockAttemptFailed(String),

0 commit comments

Comments
 (0)