Skip to content

Design optional dependencies and package features #56

Closed

Description

@LunaStev

Motivation

Real packages need opt-in integrations without forcing every consumer to build every dependency. Vex has no optional dependency or feature model.

Design requirements

  • Features must be additive and deterministic.
  • Feature selection must not allow arbitrary compiler flags or scripts.
  • The lockfile must preserve enough information to reproduce the selected graph.
  • Cycles and conflicts must remain actionable.
  • Default features and disabling defaults need explicit semantics.
  • Target-specific and optional dependency interaction must be defined.
  • Feature unification behavior across transitive edges must be documented.

Acceptance criteria

  • Publish an agreed manifest, CLI, lockfile, tree, and metadata model.
  • Add graph-resolution tests for direct, transitive, default, disabled, and conflicting features.
  • Preserve --locked and --offline.
  • Keep registry and publish functionality out of scope.

Activity

  1. added
    discussion
    feature request
    dependencies
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesdiscussionfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions