bestia-dev / cargo_crev_web

web server to query reviews from cargo-crev
https://lucianobestia.github.io/cargo_crev_web
MIT License
8 stars 0 forks source link

vscode extension "crates" - add link to cargo_crev_web #8

Closed bestia-dev closed 3 years ago

bestia-dev commented 4 years ago

https://github.com/serayuzgur/crates https://github.com/serayuzgur/crates/issues/72

I am thinking aloud now. What is important when the developer wants to change the version of a dependency? He should read some information what changed and if there are problems with the new version. Reading the documentation is fine, but it is just like commercials. The author will always say the best for his product. Sometimes he does not know better. Sometimes he is lazy. I don't want to go in extreme where evil people want to do harm. That is rare, but is not impossible.

I like the idea of cargo-crev: https://github.com/crev-dev/cargo-crev a system of trusted reviews from other developers. If enough people say a version is ok it is probably ok. If some people say an explicit version has big problems it probably has and should be avoided. There are reviews, issues and advisories in cargo-crev.

I am building (slowly) a web interface cargo_crev_web. Try it here: https://bestia.dev/cargo_crev_web/query/num-traits

I think that your extension crates is the best place for the developer to find this information before he actually updates the version of a dependency.

bestia-dev commented 4 years ago

https://github.com/serayuzgur/crates/issues/69#issuecomment-636679232 :

I think that "searching" for a crate is more than simply choosing one from the auto-completion drop-down. It is an important step and you want to avoid problems here. Making it too easy is missleading, I think. I would rather have a handy fast accessible link to open the search on crates.io and lib.rs. There is much to read about a crate than only a crate name, version and description. I imagine this workflow:

Now I have the correct name and version reader_for_microxml = "1.1.7". If I go on the version number the extension opens like this: image I can:

  1. open the crate.io page https://crates.io/crates/reader_for_microxml
  2. open the lib.rs https://lib.rs/crates/reader_for_microxml
  3. open cargo-crev reviews (still beta) https://bestia.dev/cargo_crev_web/crate/reader_for_microxml
  4. open the current documentation: https://docs.rs/crate/reader_for_microxml/1.0.4
  5. open the latest documentation (to see the changes): https://docs.rs/crate/reader_for_microxml/1.1.6

All this commands are simple URL-s. There is no need for any additional data to get or extension behaviour to modify. Very simple.

Originally posted by @LucianoBestia in https://github.com/serayuzgur/crates/issues/69#issuecomment-636679232