| 293 | } |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | impl std::error::Error for BuildError {} |
| 298 | |
| 299 | pub struct BuildExecutor; |
| 300 | |
| 301 | impl BuildExecutor { |
| 302 | pub fn plan(manifest: &BuildManifest) -> BuildPlan { |
| 303 | BuildPlan { |
| 304 | name: manifest.name.clone(), |
| 305 | target: manifest.target, |
| 306 | entry: manifest.entry.clone(), |
| 307 | stdlib: manifest.stdlib, |
| 308 | import_closure: manifest.import_closure, |
| 309 | root: manifest.root.name().to_owned(), |
| 310 | extra_objects: manifest |
| 311 | .extra_objects |
| 312 | .iter() |
| 313 | .map(|object| object.name.clone()) |
| 314 | .collect(), |