Skip to content

Commit 99206a0

Browse files
committed
test hyperlight cfg in guest example
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 2905b2c commit 99206a0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/guest/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
extern crate alloc;
55

6+
const _: () = {
7+
#[cfg(not(hyperlight))]
8+
compile_error!("This crate can only be compiled for hyperlight targets");
9+
};
10+
611
use alloc::format;
712
use alloc::vec::Vec;
813

0 commit comments

Comments
 (0)