Only use substrate-wasm-builder when std feature is enabled. (#12790)

Co-authored-by: parity-processbot <>
This commit is contained in:
Nazar Mokrynskyiandparity-processbot authored and GitHub committed 2023-01-06 10:24:12 +00:00
1 parent 9fe5dd5f59
commit dccef86edb
13 files changed
+109 -80

No files matched your search

+8 -7
View File
@@ -15,12 +15,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use substrate_wasm_builder::WasmBuilder;
fn main() {
WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build()
#[cfg(feature = "std")]
{
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
.build();
}
}