List crate features so they're readable#10540
List crate features so they're readable#10540NthMetal wants to merge 1 commit intorust-lang:mainfrom NthMetal:readable-features
Conversation
|
Sorry for the long radio silence! we discussed this PR in our team meeting, but we concluded that the version listing is not the right place for the feature list. we think it would be better to make it e.g. a dedicated route or tab per version, but we also think that it would be good to wait until https://rust-lang.github.io/rfcs/3416-feature-metadata.html is stabilized, so that we can also properly display feature metadata. regarding the tooltips that you fixed: we agree that the long feature list of e.g. bevy is problematic, but we prefer a solution where we only display the first ~10 features and then display something like "and 300 other features". regarding the z-index issue with the tooltip in your screenshot: this should be addressed by #10731 Thank you for getting the discussion started on how we can improve the feature listing, though unfortunately we are going to close this PR in favor of the solutions listed above. |
|
Ok thanks for getting back to me @Turbo87 The intent with the pr was to make it more functional, not really pretty, that was just a bonus. The hover for features isn't readable and is hard to do things with. I can't open it and compare the list of features with my Cargo.toml. I can't select stuff and copy and paste if the list is too short. I can't open the list to even make sure i'm typing the right feature in my IDE. I can't ctrl+f and search for a feature. Right now if I want more than just a quick glance at features I have to open up my chrome inspect menu and look at it there or search up the package on lib.rs. The data is there, it's just not usable because of the hover. Having it in a separate tab sounds great, I contemplated doing that initially, but figured it would be easier to just make it expandable. Were any of those other issues considered? They weren't really mentioned in this PR, but were brought up in the linked issue. |
there is also https://docs.rs/crate/bevy/latest/features, but admittedly lib.rs gives a bit more information
I'm not sure what "other issues" you mean. All of the points you brought up should be addressed if we move the features list to a dedicated tab, but as I mentioned in the comment above, this is at least partially blocked on https://rust-lang.github.io/rfcs/3416-feature-metadata.html. |

fixes #465
Just a UI update to move the version feature list to a separate togglable panel.

Currently you can only view them on hover. Which isn't readable with long lists and doesn't allow you to easily select what you wanna see.
Before:
After:



Thoughts, suggestions, improvements, etc. appreciated!