From a0bb145aedf81e2dbf50be4ecaff4ffda50517ed Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Wed, 13 Nov 2024 10:38:53 +0100 Subject: [PATCH] Add comment to wasm_lib.rs --- src/wasm_lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wasm_lib.rs b/src/wasm_lib.rs index 2700c77..02becdc 100644 --- a/src/wasm_lib.rs +++ b/src/wasm_lib.rs @@ -1,3 +1,11 @@ #![allow(special_module_name)] mod lib; + +# This is an hack, but currently there are no ways to change +# the crate-type conditionally, and Wasm extensions and native +# extensions need two different defaults. + +# This file sole purpose is remapping the content of lib as an +# example, so that it can be built via: +# cargo built --example package_name