Skip to content

Hide yanked crate versions. #112

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
dpc opened this issue Mar 24, 2017 · 2 comments · Fixed by #739
Closed

Hide yanked crate versions. #112

dpc opened this issue Mar 24, 2017 · 2 comments · Fixed by #739

Comments

@dpc
Copy link

dpc commented Mar 24, 2017

Recently crates.io added quite a bit of fixes around yanked crates. Eg. when the latest version were yanked, the default one will be first version that is not yanked.

Also, generally skipping yanked versions in UI elements would be great. They can still be displayed if explicitly picked through a URL though.

@dpc dpc changed the title Skip yank crates. Skip yanked versions. Mar 24, 2017
@dpc dpc changed the title Skip yanked versions. Hide yanked crate versions. Mar 24, 2017
@crumblingstatue
Copy link

I agree that docs.rs should at least warn the user if they are looking at the docs for a yanked crate.

I often don't even look at crates.io anymore, and just copy the version straight from docs.rs.

Except I didn't realize that the version I copied has been yanked.

@cramertj
Copy link
Member

Relatedly, the https://docs.rs/<crate_name> link should probably go to the latest non-yanked version. For example, https://docs.rs/futures currently points to futures 0.2.1, which was yanked.

cc @onur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants