Skip to content

Allow selecting an explicit standard-library root #767

Closed

Description

@LunaStev

Motivation

Standard-library imports resolve through the installed home-directory std tree. Testing this checkout currently requires installing it, changing home resolution, or copying std and rewriting import names.

Starting points: utils/src/paths.rs, front/parser/src/import.rs, src/cli.rs.

Scope

Allow an explicit std root to flow from compiler configuration into import resolution. Retain compatibility-manifest validation, containment checks and the existing default when no override is provided.

Difficulty: medium.

Completion criteria

  • Define deterministic precedence between explicit and default roots.
  • Test missing/invalid/incompatible manifests and Unicode paths.
  • Build against a checkout std without modifying the user installation or HOME.
  • Keep independent compiler invocations isolated.

Activity

  1. added
    enhancement
    help wanted
    needs testing
    cross-platform
    on Sep 25, 2026
  2. self-assigned this
    on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cross-platformenhancementhelp wantedneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions