hehehai / cratehub

🦀 A browser extension to explore rust cargo dependencies on GitHub repos
MIT License
24 stars 1 forks source link

feat: check repo crate info show ui #14 #16

Closed hehehai closed 2 years ago

hehehai commented 2 years ago

feat 🎉

detail

判断 repo 是否为有效 crate 的规则:

  1. 检测 package name 是否可在 crate 中找到
  2. 判断找到的 crate 的 repository 是否存在且和 Cargo 中的相同(若满足🤝,即视为有效 crate)
  3. 否则(在 crate 没有 repository 或 repository 不同的情况下)判断 version 是否相同(若满足🤝,即视为有效 crate)

判断是否支持 playground

  1. 是有效的 crate
  2. 查询当前 crates day top 100
  3. 判断当前 crate 是否在其中(若满足🤝,即视为支持 playground)
height[bot] commented 2 years ago

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.