Skip to content

cargo run -v should show setting of LD_LIBRARY_PATH #4879

Closed
@joshtriplett

Description

@joshtriplett

I spoke with someone recently who had some trouble figuring out how to run Cargo-built binaries directly, until they realized that cargo run sets LD_LIBRARY_PATH, which is not documented. When running cargo run -v, cargo shows the binaries it runs, but not the setting of LD_LIBRARY_PATH. Please include that in the emitted command line invocations (e.g. LD_LIBRARY_PATH=... target/release/...) when using -v, to make it more obvious what cargo run does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-console-outputArea: Terminal output, colors, progress bar, etc.C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-runCommand-testE-easyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions