mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Return Features & Target by reference in Compiler
This commit is contained in:
@@ -16,10 +16,10 @@ use wasmparser::{validate, OperatorValidatorConfig, ValidatingParserConfig};
|
||||
/// An implementation of a Compiler from parsed WebAssembly module to Compiled native code.
|
||||
pub trait Compiler {
|
||||
/// Gets the target associated with this compiler
|
||||
fn target(&self) -> Target;
|
||||
fn target(&self) -> &Target;
|
||||
|
||||
/// Gets the WebAssembly features for this Compiler
|
||||
fn features(&self) -> Features;
|
||||
fn features(&self) -> &Features;
|
||||
|
||||
/// Validates a module.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user