Split out work.rs into its own crate

This commit is contained in:
Richard Feldman 2024-06-16 22:26:58 -04:00
parent 41ea2bfbc7
commit 4042fd8d52
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
8 changed files with 78 additions and 4 deletions

View file

@ -81,8 +81,8 @@ use {
roc_packaging::https::{PackageMetadata, Problem},
};
pub use crate::work::Phase;
use crate::work::{DepCycle, Dependencies};
pub use roc_work::Phase;
use roc_work::{DepCycle, Dependencies};
#[cfg(target_family = "wasm")]
use crate::wasm_instant::{Duration, Instant};
@ -150,7 +150,8 @@ fn start_phase<'a>(
) -> Vec<BuildTask<'a>> {
// we blindly assume all dependencies are met
use crate::work::PrepareStartPhase::*;
use roc_work::PrepareStartPhase::*;
match state.dependencies.prepare_start_phase(module_id, phase) {
Continue => {
// fall through