---
# System prepended metadata

title: "[component.needy.impor]\n"

---

```toml
[component.needy.imports]
something = { source = "path/to/some.wasm", export = "foo" }
```

```toml
[[trigger.http]]
route = "/"
component = { source = "handler.wasm" }
components.middleware = ["gzip", "origin"]
```

```toml
[[trigger.http]]
route = "/"
component = { source = "handler.wasm" }
components.middleware = [{ source = "gzip.wasm"}, { source = "origin.wasm" }]
```

```
imports = {
     foo = "bar",
     bar = "baz"
}
```

```
world t {
    import foo: func()
    import bar: func()
}
```

```
component.mine.import = { handler = "http-handler" }
component.mine.imports = [{source = { registry = "wasi:virt" }}]

component.needy.imports = { foo = "has-foo/foo" }
    "has-foo/foo"
    { source = "path/to/some.wasm", export = "foo" }
]
```

```toml
[[component.needy.imports]]
source = { source = "path/to/some.wasm" }
export = "foo"
```

```toml
[component.foo]
source = "path/to/buz.wasm"
export = "bar/baz"
```

```toml
[component.needy.imports]
something = "foo/bar"
```