Skip to content

Allow searching multiple Cargo targets or the entire workspace #417

@kpreid

Description

@kpreid

Right now, cargo asm errors out if not enough package and target selection options are passed to choose a single Cargo target. However, in the presence of generics or inlining, it may not be possible to know up front what target contains the function of interest. This results in my having to run multiple cargo asm commands to guess where the monomorphized function, if any, landed.

I would like cargo asm to automate this by allowing searching multiple targets if multiple targets are present. The output should specify the target in addition to the symbol name.

This may be slow, so it could print advice suggesting the appropriate filtering options for future runs. It could also cache symbols found in previous runs and build only that target next time, but that could guess wrong and hide ambiguity, particularly if a code change changes inlining decisions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions