Move target back into wasmer_types

This commit is contained in:
Syrus Akbary
2025-03-06 11:09:51 +01:00
parent bd13db0c48
commit 78eca7958d
41 changed files with 82 additions and 94 deletions

View File

@ -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)]

View File

@ -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};

View File

@ -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};

View File

@ -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")]

View File

@ -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);

View File

@ -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 {

View File

@ -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 {

View File

@ -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};

View File

@ -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};