Skip to content

Support targeting the spin-imports world #110

@dicej

Description

@dicej

When building a component intended for composition with other components, it may make sense to target the spin-imports world defined in the src/spin_sdk/wit/spin.wit file in this repo. However, that currently won't work because spin_sdk.http unconditionally imports spin_sdk.wit.exports, which won't exist when targeting spin-imports. One possible solution would be to wrap that import in a try/except block and then skip any code that requires it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions