diff --git a/examples/overflow/guest/Cargo.toml b/examples/overflow/guest/Cargo.toml index 889ed85c1..e4f831051 100644 --- a/examples/overflow/guest/Cargo.toml +++ b/examples/overflow/guest/Cargo.toml @@ -3,10 +3,6 @@ name = "overflow-guest" version = "0.1.0" edition = "2021" -[[bin]] -name = "guest" -path = "./src/lib.rs" - [features] guest = [] diff --git a/examples/overflow/guest/src/lib.rs b/examples/overflow/guest/src/lib.rs index 55334c61b..4c7811ec9 100644 --- a/examples/overflow/guest/src/lib.rs +++ b/examples/overflow/guest/src/lib.rs @@ -1,5 +1,4 @@ #![cfg_attr(feature = "guest", no_std)] -#![no_main] extern crate alloc; use alloc::vec; diff --git a/examples/overflow/guest/src/main.rs b/examples/overflow/guest/src/main.rs new file mode 100644 index 000000000..01eec91d6 --- /dev/null +++ b/examples/overflow/guest/src/main.rs @@ -0,0 +1,5 @@ +#![cfg_attr(feature = "guest", no_std)] +#![no_main] + +#[allow(unused_imports)] +use overflow_guest::*;