Skip to main content

soil_client/executor/common/
mod.rs

1// This file is part of Soil.
2
3// Copyright (C) Soil contributors.
4// Copyright (C) Parity Technologies (UK) Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
6
7//! A set of common definitions that are needed for defining execution engines.
8
9pub mod error;
10pub mod runtime_blob;
11pub mod util;
12pub mod wasm_runtime;
13
14pub(crate) fn is_polkavm_enabled() -> bool {
15	std::env::var_os("SUBSTRATE_ENABLE_POLKAVM").map_or(false, |value| value == "1")
16}