Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace.default-members key is missing from output #215

Closed
ZhaoXiangXML opened this issue Jan 17, 2023 · 4 comments · Fixed by #248
Closed

workspace.default-members key is missing from output #215

ZhaoXiangXML opened this issue Jan 17, 2023 · 4 comments · Fixed by #248

Comments

@ZhaoXiangXML
Copy link

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?

@oli-obk
Copy link
Owner

oli-obk commented Jan 17, 2023

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.

@ZhaoXiangXML
Copy link
Author

Well, thanks anyway

@ZhaoXiangXML
Copy link
Author

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

@sunshowers
Copy link
Contributor

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

sorcio added a commit to sorcio/cargo_metadata that referenced this issue Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants