Skip to content

Make cargo aware of the BROWSER environment variable. #6064

@d3rped

Description

@d3rped

I've just started out learning rust so I heavily use the documentation of both the std libraries/cates and external crates. For that I use the doc option of rustup and cargo respectively.
rustup checks for the BROWSER environment variable and in my opinion so should cargo.

  • example:
    BROWSER=chromium cargo doc --open
  • expected behavior: the docs should be opened in chromium
  • actual behavior: the docs are opened with my (default browser) firefox

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions