Skip to content

rustup show active-toolchain should provide the toolchain path #4129

Closed
@rami3l

Description

@rami3l

Problem you are trying to solve

Let me guess: you actually just want to get the active toolchain path with this snippet...

https://github.com/corrosion-rs/corrosion/blob/b88ec09915a6b12d1aaec7e451ecf0e41a831030/cmake/FindRust.cmake#L423-L428

... however you might have tried the following options and concluded that neither is satisfactory:

  • rustup show active-toolchain. This seems like the most obvious option, however it is somehow not willing to give you the toolchain path...
  • rustup toolchain list --verbose. This does give you the toolchain paths, but you have to manually deduce what the active toolchain is :|

corrosion-rs/corrosion#590 (comment)

Solution you'd like

rustup show active-toolchain should provide the toolchain path, or optionally with --verbose.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions