gsc_executor_common/lib.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
3
4//! A set of common definitions that are needed for defining execution engines.
5
6#![warn(missing_docs)]
7#![deny(unused_crate_dependencies)]
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").is_some_and(|value| value == "1")
16}