Skip to content
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

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

Merged
merged 1 commit into from Jun 16, 2022
Merged

Conversation

hehehai
Copy link
Owner

@hehehai hehehai commented Jun 15, 2022

feat 🎉

  • 自动检测 Cargo.toml package name 是否有有效 crate
  • 自动检测当前 crate 是否支持 playground

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)

@hehehai hehehai added bug Something isn't working enhancement New feature or request labels Jun 15, 2022
@hehehai hehehai added this to the 0.0.3 milestone Jun 15, 2022
@height
Copy link

height bot commented Jun 15, 2022

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.

@hehehai hehehai merged commit 2cf2479 into main Jun 16, 2022
@hehehai hehehai deleted the hehehai/crate-only-info branch June 16, 2022 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant