Skip to content

Commit ef2c3ea

Browse files
committed
Only include vm mod when init-paging is enabled
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 0ff5937 commit ef2c3ea

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/hyperlight_common/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fuzzing = ["dep:arbitrary"]
3030
trace_guest = []
3131
mem_profile = []
3232
std = ["thiserror/std", "log/std", "tracing/std"]
33+
init-paging = []
3334

3435
[lib]
3536
bench = false # see https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options

src/hyperlight_common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ pub mod resource;
3939
/// cbindgen:ignore
4040
pub mod func;
4141
// cbindgen:ignore
42+
#[cfg(feature = "init-paging")]
4243
pub mod vm;

src/hyperlight_guest_bin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ macros = ["dep:hyperlight-guest-macro", "dep:linkme"]
2323

2424
[dependencies]
2525
hyperlight-guest = { workspace = true, default-features = false }
26-
hyperlight-common = { workspace = true, default-features = false }
26+
hyperlight-common = { workspace = true, default-features = false, features = [ "init-paging" ] }
2727
hyperlight-guest-tracing = { workspace = true, default-features = false }
2828
hyperlight-guest-macro = { workspace = true, default-features = false, optional = true }
2929
buddy_system_allocator = "0.11.0"

src/hyperlight_host/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tracing = { version = "0.1.43", features = ["log"] }
4040
tracing-log = "0.2.0"
4141
tracing-core = "0.1.35"
4242
tracing-opentelemetry = { version = "0.32.0", optional = true }
43-
hyperlight-common = { workspace = true, default-features = true, features = [ "std" ] }
43+
hyperlight-common = { workspace = true, default-features = true, features = [ "std", "init-paging" ] }
4444
hyperlight-guest-tracing = { workspace = true, default-features = true, optional = true }
4545
vmm-sys-util = "0.15.0"
4646
crossbeam-channel = "0.5.15"

0 commit comments

Comments
 (0)