Skip to content

Model explicit library and binary targets in vex.ws #46

Closed

Description

@LunaStev

Motivation

Vex currently has one implicit target selected by lib = true|false. A library package cannot also expose a binary, multiple binaries are impossible, and the vex run error suggests adding a binary target even though the manifest has no such syntax.

Proposed scope

Design manifest-owned package targets without forwarding raw wavec flags.

Acceptance criteria

  • Define canonical syntax for one library and multiple named binaries.
  • Preserve the current src/lib.wave and src/main.wave defaults.
  • Add default-run selection and vex build/check/run --package-target <name> or an equivalent Vex-owned interface.
  • Reject duplicate names, missing entry files, and invalid library main functions before compiler execution.
  • Include target data in future metadata from Add vex metadata with a stable JSON schema #26.
  • Define lockfile impact, if any.
  • Add integration tests for lib-only, bin-only, mixed, multiple-bin, and ambiguous-run packages.

Activity

  1. added
    build
    discussion
    feature request
    wave compatibility
    on Sep 18, 2026
  2. self-assigned this
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

builddiscussionfeature requestwave compatibility

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions