mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-23 00:45:32 +00:00
Move target back into wasmer_types
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_types::{target::Target, Features};
|
||||
|
||||
/// The engine for the JavaScript runtime.
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -1,8 +1,7 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use rusty_jsc::{JSContext, JSObject};
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_types::{target::Target, Features};
|
||||
|
||||
use crate::{AsEngineRef, AsStoreRef};
|
||||
|
||||
|
@ -4,9 +4,9 @@ use std::{path::Path, sync::Arc};
|
||||
|
||||
use shared_buffer::OwnedBuffer;
|
||||
pub use wasmer_compiler::{
|
||||
types::target::Target, Artifact, BaseTunables, CompilerConfig, Engine, EngineBuilder, Tunables,
|
||||
Artifact, BaseTunables, CompilerConfig, Engine, EngineBuilder, Tunables,
|
||||
};
|
||||
use wasmer_types::{DeserializeError, Features, HashAlgorithm};
|
||||
use wasmer_types::{target::Target, DeserializeError, Features, HashAlgorithm};
|
||||
|
||||
use crate::{BackendEngine, BackendModule};
|
||||
|
||||
|
@ -14,11 +14,9 @@ pub use wasmer_compiler::{
|
||||
wasmparser, CompilerConfig, FunctionMiddleware, MiddlewareReaderState, ModuleMiddleware,
|
||||
};
|
||||
|
||||
pub use wasmer_compiler::{
|
||||
types::target::{Architecture, CpuFeature, OperatingSystem, Target, Triple},
|
||||
Artifact, EngineBuilder, Features, Tunables,
|
||||
};
|
||||
pub use wasmer_compiler::{Artifact, EngineBuilder, Features, Tunables};
|
||||
|
||||
pub use wasmer_types::target::{Architecture, CpuFeature, OperatingSystem, Target, Triple};
|
||||
pub use wasmer_types::MiddlewareError;
|
||||
|
||||
#[cfg(feature = "cranelift")]
|
||||
|
@ -4,8 +4,7 @@ use crate::{
|
||||
BackendEngine,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_types::{target::Target, Features};
|
||||
|
||||
// A handle to an engine, which we want to unsafely mark as Sync.
|
||||
struct EngineCapsule(*mut wasm_engine_t);
|
||||
|
@ -4,8 +4,7 @@ use crate::{
|
||||
BackendEngine,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_types::{target::Target, Features};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct CApiEngine {
|
||||
|
@ -4,8 +4,7 @@ use crate::{
|
||||
BackendEngine,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::Features;
|
||||
use wasmer_types::{target::Target, Features};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub(crate) struct CApiEngine {
|
||||
|
@ -1,7 +1,6 @@
|
||||
use bytes::Bytes;
|
||||
use std::{path::Path, sync::Arc};
|
||||
use wasmer_compiler::types::target::Target;
|
||||
use wasmer_types::{DeserializeError, Features};
|
||||
use wasmer_types::{target::Target, DeserializeError, Features};
|
||||
|
||||
#[cfg(feature = "sys")]
|
||||
use wasmer_compiler::{Artifact, CompilerConfig};
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
use bytes::Bytes;
|
||||
use std::{path::Path, sync::Arc};
|
||||
use wasmer_types::{DeserializeError, Features};
|
||||
use wasmer_types::{target::Target, DeserializeError, Features};
|
||||
|
||||
#[cfg(feature = "sys")]
|
||||
use wasmer_compiler::Artifact;
|
||||
|
||||
use wasmer_compiler::types::target::Target;
|
||||
#[cfg(feature = "compiler")]
|
||||
use wasmer_compiler::CompilerConfig;
|
||||
|
||||
use crate::{BackendKind, IntoBytes, Store};
|
||||
|
Reference in New Issue
Block a user