Skip to content

Add a mach command to run rustfmt #21374

Closed

Description

@jdm

To make it easy to accomplish #21373, we need to make it easy to run the version of rustfmt that is part of the pinned version of rustc that Servo's build system uses. I propose a new rustfmt command added to python/servo/devenv_commands.py which runs cargo fmt on a directory provided as a command argument. We will also need to add the rustfmt preview to the pinned Rust toolchain that Servo uses (via rustup component add rustfmt-preview --toolchain [...]) (docs).

Looks for uses of rustup in other files like python/servo/build_commands.rs for the recommended way to use our pinned toolchain.

Activity

  1. added
    E-less-complex
    L-python
    on Aug 9, 2018
  2. highfive commented on Aug 9, 2018

    @highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in the #servo channel in IRC.

    If you intend to work on this issue, then add @highfive: assign me to your comment, and I'll assign this to you. 😄

  3. JoshBrudnak commented on Aug 10, 2018

    @JoshBrudnak
    Contributor

    Hi, I would like to work on this issue, @highfive: assign me

  4. highfive commented on Aug 10, 2018

    @highfive

    Hey @JoshBrudnak! Thanks for your interest in working on this issue. It's now assigned to you!

  5. added
    C-assigned
    on Aug 10, 2018
  6. added a commit that references this issue on Aug 10, 2018
    c362ade
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

    A-machC-assignedE-less-complexL-python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions