Skip to content

Make parser more robust against changes in the output of rustc #11

Closed

Description

@Kimundi

Right now the parser of rustcs version information is relatively strict, expecting a clearly defined format of lines.

However, seeing how rustc is unlikely to break its output in a backwards-incompatible way, but might add additional fields (as has already happened in the past), it might be more forward-compatible to just look for the "<key>: <value>" lines this crate knows about and silently ignore the rest.

Activity

  1. alexcrichton commented on Sep 24, 2018

    @alexcrichton

    FWIW this caused this change in rustc output to bounce in the past

  2. added a commit that references this issue on Dec 1, 2018
  3. added a commit that references this issue on Dec 1, 2018
  4. added 3 commits that reference this issue on Jan 11, 2021
    9447ae3
    4fc3033
    632def8
  5. added 3 commits that reference this issue on May 21, 2026
    e5b2216
    ac2e320
    ce19d29
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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions