oli-obk / cargo_metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`workspace.default-members` key is missing from output

ZhaoXiangXML opened this issue · comments

According to the doc of cargo build:

The default members of a workspace can be set explicitly with the workspace.default-members key in the root manifest.

However there's no such field in the output of cargo metadata.

Is there a workaround to this other than parsing the toml file?

Is there a workaround to this other than parsing the toml file?

creating a PR to this crate that adds it? 😆, unfortunately there's no workaround, no, sorry.

Well, thanks anyway

Maybe I can simply ignore it for now, I don't really need this field

commented

See rust-lang/cargo#8033 — this has shipped in Rust 1.71.