Skip to content

Include homepage field in cargo metadata #8880

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

Closed
jyn514 opened this issue Nov 22, 2020 · 2 comments
Closed

Include homepage field in cargo metadata #8880

jyn514 opened this issue Nov 22, 2020 · 2 comments
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@jyn514
Copy link
Member

jyn514 commented Nov 22, 2020

Describe the problem you are trying to solve

docs.rs wants access to the homepage field in Cargo.toml so it can show it in the sidebar (e.g. https://docs.rs/crate/tokio/0.3.4 links to https://tokio.rs/).

Describe the solution you'd like

cargo metadata should include a homepage field for every package, the same way it has a repository field for each.

Notes

I'm a little confused why this is working currently in docs.rs - we use custom serialization instead of https://docs.rs/cargo_metadata, but I don't see how we could deserialize data that wasn't there in the first place. But I ran database query and there are definitely a lot of projects with homepages. Maybe this changed semi-recently?

@jyn514 jyn514 added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Nov 22, 2020
@jyn514
Copy link
Member Author

jyn514 commented Nov 22, 2020

The documentation field would also be useful.

@jyn514
Copy link
Member Author

jyn514 commented Nov 22, 2020

It turns out this is present in 1.49 and I was testing with 1.48. Sorry for the noise!

@jyn514 jyn514 closed this as completed Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

1 participant