mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 21:21:33 +00:00
feat(runtime) Make default_compiler
public.
This is required to be able to deserialize a serialized module in `runtime-c-api`.
This commit is contained in:
@ -152,7 +152,8 @@ pub fn instantiate(wasm: &[u8], import_object: &ImportObject) -> error::Result<I
|
|||||||
module.instantiate(import_object)
|
module.instantiate(import_object)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn default_compiler() -> &'static dyn Compiler {
|
/// Get a single instance of the default compiler to use.
|
||||||
|
pub fn default_compiler() -> &'static dyn Compiler {
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
#[cfg(feature = "llvm")]
|
#[cfg(feature = "llvm")]
|
||||||
|
Reference in New Issue
Block a user