Skip to content

feature request: bindings subcommand #362

@dakom

Description

@dakom

When working on a component locally, I often go through this flow:

  1. Make changes to the wit
  2. Generate the new bindings
  3. Make changes to the component

Currently, afaik, the way to generate the new bindings is to run a full cargo component build. This has a few drawbacks:

  1. It inevitably has errors, because I don't make the rest of the code changes until I have the new bindings to build against
  2. It's a bit unintuitive, I genuinely don't want to build the component, feels a bit like using the non-optimal command for its side-effect
  3. It's doing more than necessary (I think), a bindings-only subcommand would likely be much faster

I think it would be a tooling improvement to have an explicit subcommand that just generates the bindings, without building the full component

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