From 44022f77fb23f6d845f7edc7ba790ca7eb57a276 Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 25 Mar 2024 14:53:03 -0500 Subject: [PATCH] Add clarifying comments --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index f6a3cf4..470bccb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -286,6 +286,8 @@ impl Runner { let sourcedir = make_sourcedir(source)?; let store = &*STORE; let (module, version) = lang.get_wasm(store)?; + // This is very strange, but this exactly println in this exact place is necessary to avoid + // error: "corrupted binary: misaligned metadata" println!("IT worked"); Runner::new_wasm(store, module, version, &[], sourcedir).await } @@ -636,6 +638,8 @@ impl Lang { }}; } let lang = self; + // This is very strange, but this exactly println in this exact place is necessary to avoid + // error: "corrupted binary: misaligned metadata" println!("ATTEMPTING"); Ok(include!(concat!(env!("OUT_DIR"), "/lang_runners.rs"))) }