mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Split out work.rs into its own crate
This commit is contained in:
parent
41ea2bfbc7
commit
4042fd8d52
8 changed files with 78 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue