lots of stuff
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
|
||||
#![ allow( warnings ) ]
|
||||
|
||||
#[no_mangle]
|
||||
pub fn main() {
|
||||
println!("hello from main fn");
|
||||
}
|
||||
|
||||
static PROTO_VERSION: u8 = 1;
|
||||
|
||||
// the core part has the code that can run on any platform
|
||||
@@ -43,6 +48,9 @@ pub mod platform {
|
||||
#[cfg(feature = "os-target")]
|
||||
pub use super::os::load_module;
|
||||
|
||||
#[cfg(feature = "wasm-target")]
|
||||
pub use super::super::load_module;
|
||||
|
||||
#[cfg(not(any(feature = "os-target", feature = "wasm-target")))]
|
||||
pub use super::super::load_module;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user