Skip to content

How does cargo-auditable construct the information that it includes in the binary? #127

Answered by bjorn3
mulkieran asked this question in Q&A
Discussion options

You must be logged in to vote

It uses cargo metadata:

fn get_metadata(args: &RustcArgs, target_triple: &str) -> Metadata {
cargo metadata has an issue where it sometimes returns more dependencies than actually get compiled in when you use the v2 resolver (I believe it is hard coded to the v1 resolver), but afaik it will never omit any dependencies.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Shnatsel
Comment options

@mulkieran
Comment options

@Shnatsel
Comment options

@mulkieran
Comment options

Answer selected by Shnatsel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #126 on October 04, 2023 14:23.