|
4 | 4 | anyhow::{anyhow, bail, ensure, Context, Error, Result}, |
5 | 5 | async_trait::async_trait, |
6 | 6 | bytes::Bytes, |
7 | | - component_init::Invoker, |
| 7 | + component_init_transform::Invoker, |
8 | 8 | futures::future::FutureExt, |
9 | 9 | heck::ToSnakeCase, |
10 | 10 | indexmap::{IndexMap, IndexSet}, |
@@ -351,9 +351,10 @@ pub async fn componentize( |
351 | 351 | None |
352 | 352 | }; |
353 | 353 |
|
354 | | - // Pre-initialize the component by running it through `component_init::initialize`. Currently, this is the |
355 | | - // application's first and only chance to load any standard or third-party modules since we do not yet include |
356 | | - // a virtual filesystem in the component to make those modules available at runtime. |
| 354 | + // Pre-initialize the component by running it through `component_init_transform::initialize`. |
| 355 | + // Currently, this is the application's first and only chance to load any standard or |
| 356 | + // third-party modules since we do not yet include a virtual filesystem in the component to |
| 357 | + // make those modules available at runtime. |
357 | 358 |
|
358 | 359 | let stdout = MemoryOutputPipe::new(10000); |
359 | 360 | let stderr = MemoryOutputPipe::new(10000); |
@@ -514,7 +515,7 @@ pub async fn componentize( |
514 | 515 | let mut store = Store::new(&engine, Ctx { wasi, table }); |
515 | 516 |
|
516 | 517 | let app_name = app_name.to_owned(); |
517 | | - let component = component_init::initialize_staged( |
| 518 | + let component = component_init_transform::initialize_staged( |
518 | 519 | &component, |
519 | 520 | stubbed_component |
520 | 521 | .as_ref() |
|
0 commit comments