diff --git a/Cargo.lock b/Cargo.lock index 3d5882969dbb2c..36fe15c6643d8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9904,11 +9904,11 @@ dependencies = [ "tokio", "turbo-rcstr", "turbo-tasks", + "turbo-tasks-backend", "turbo-tasks-build", "turbo-tasks-bytes", "turbo-tasks-env", "turbo-tasks-fs", - "turbo-tasks-memory", "turbopack", "turbopack-browser", "turbopack-cli-utils", diff --git a/turbopack/crates/turbopack-tests/Cargo.toml b/turbopack/crates/turbopack-tests/Cargo.toml index a5345623dd36b3..8586807bbaf961 100644 --- a/turbopack/crates/turbopack-tests/Cargo.toml +++ b/turbopack/crates/turbopack-tests/Cargo.toml @@ -30,7 +30,7 @@ turbo-tasks = { workspace = true } turbo-tasks-bytes = { workspace = true } turbo-tasks-env = { workspace = true } turbo-tasks-fs = { workspace = true } -turbo-tasks-memory = { workspace = true } +turbo-tasks-backend = { workspace = true } turbopack-browser = { workspace = true, features = ["test"] } turbopack-cli-utils = { workspace = true } turbopack-core = { workspace = true, features = ["issue_path"] } diff --git a/turbopack/crates/turbopack-tests/tests/execution.rs b/turbopack/crates/turbopack-tests/tests/execution.rs index 5d867f6b47901b..5088076904911f 100644 --- a/turbopack/crates/turbopack-tests/tests/execution.rs +++ b/turbopack/crates/turbopack-tests/tests/execution.rs @@ -15,13 +15,13 @@ use turbo_tasks::{ apply_effects, debug::ValueDebugFormat, fxindexmap, trace::TraceRawVcs, Completion, NonLocalValue, OperationVc, ResolvedVc, TryJoinIterExt, TurboTasks, Value, Vc, }; +use turbo_tasks_backend::{noop_backing_storage, BackendOptions, TurboTasksBackend}; use turbo_tasks_bytes::stream::SingleValue; use turbo_tasks_env::CommandLineProcessEnv; use turbo_tasks_fs::{ json::parse_json_with_source_context, util::sys_to_unix, DiskFileSystem, FileContent, FileSystem, FileSystemEntryType, FileSystemPath, }; -use turbo_tasks_memory::MemoryBackend; use turbopack::{ ecmascript::TreeShakingMode, module_options::{EcmascriptOptionsContext, ModuleOptionsContext, TypescriptTransformOptions}, @@ -168,7 +168,13 @@ async fn run(resource: PathBuf, snapshot_mode: IssueSnapshotMode) -> Result Result<()> { register(); - let tt = TurboTasks::new(MemoryBackend::default()); + let tt = TurboTasks::new(TurboTasksBackend::new( + BackendOptions { + storage_mode: None, + ..Default::default() + }, + noop_backing_storage(), + )); let task = tt.spawn_once_task(async move { let emit_op = run_inner_operation(resource.to_str().unwrap().into()); emit_op.read_strongly_consistent().await?;