Skip to content

Improve --dep-info to include crate dependencies #16638

Closed
@serpent

Description

@serpent

The --dep-info flag to rustc only prints out the source file(s) that make up the output crate. It does not print out any libraries though.

For an example file "a.rs" compiled into a binary crate "a", if "a.rs" has "extern crate b" and rustc statically links in "libb.rlib", I would expect dependency info to include the fact as "a: libb.rlib", so that whenever libb.rlib changes, a.rs is recompiled into a. Similarly for other crate types.

If --dep-info can not be modified, perhaps --full-dep-info will be considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions