Skip to content

Commit 6091ff7

Browse files
committed
[host/Cargo.toml] removed some unused dependencies from host's Cargo.toml
- serde* - lazy_static I also removed HyperlightHostError, which is now unused. Signed-off-by: danbugs <[email protected]>
1 parent 33b603f commit 6091ff7

File tree

3 files changed

+2
-36
lines changed

3 files changed

+2
-36
lines changed

Cargo.lock

Lines changed: 0 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/hyperlight_host/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ flatbuffers = "25.2.10"
3030
page_size = "0.6.0"
3131
termcolor = "1.2.0"
3232
bitflags = "2.9.0"
33-
lazy_static = "1.4.0"
34-
serde = { version = "1.0", features = ["derive"] }
35-
serde_json = "1.0"
3633
log = "0.4.27"
3734
tracing = { version = "0.1.41", features = ["log"] }
3835
tracing-log = "0.2.0"
@@ -43,7 +40,6 @@ crossbeam = "0.8.0"
4340
crossbeam-channel = "0.5.15"
4441
thiserror = "2.0.12"
4542
tempfile = { version = "3.19", optional = true }
46-
serde_yaml = "0.9"
4743
anyhow = "1.0"
4844
metrics = "0.24.2"
4945

@@ -104,11 +100,13 @@ tracing-chrome = "0.7.2"
104100
metrics-util = "0.19.1"
105101
metrics-exporter-prometheus = "0.17.0"
106102
tracing-tracy = "0.11.4"
103+
serde_json = "1.0"
107104

108105
[target.'cfg(windows)'.dev-dependencies]
109106
windows = { version = "0.61", features = [
110107
"Win32_System_Diagnostics_ToolHelp",
111108
] }
109+
lazy_static = "1.4.0"
112110

113111
[target.'cfg(unix)'.dev-dependencies]
114112
proc-maps = "0.4.0"

src/hyperlight_host/src/error.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,13 @@ use crossbeam_channel::{RecvError, SendError};
3434
use flatbuffers::InvalidFlatbuffer;
3535
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterValue, ReturnValue};
3636
use hyperlight_common::flatbuffer_wrappers::guest_error::ErrorCode;
37-
use serde::{Deserialize, Serialize};
38-
use serde_yaml;
3937
use thiserror::Error;
4038

4139
#[cfg(target_os = "windows")]
4240
use crate::hypervisor::wrappers::HandleWrapper;
4341
use crate::mem::memory_region::MemoryRegionFlags;
4442
use crate::mem::ptr::RawPtr;
4543

46-
#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
47-
pub(crate) struct HyperlightHostError {
48-
pub(crate) message: String,
49-
pub(crate) source: String,
50-
}
51-
5244
/// The error type for Hyperlight operations
5345
#[derive(Error, Debug)]
5446
pub enum HyperlightError {
@@ -294,10 +286,6 @@ pub enum HyperlightError {
294286
#[cfg(target_os = "windows")]
295287
#[error("Windows API Error Result {0:?}")]
296288
WindowsAPIError(#[from] windows_result::Error),
297-
298-
/// Conversion of str to YAML failed
299-
#[error("Conversion of str data to yaml failed")]
300-
YamlConversionFailure(#[from] serde_yaml::Error),
301289
}
302290

303291
impl From<Infallible> for HyperlightError {

0 commit comments

Comments
 (0)