hehehai / cratehub

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

refactor: next big version change #22

Open hehehai opened 2 years ago

hehehai commented 2 years ago

feats

L1

L2

fixs

L1

L2

factor

code stack: svelte, typescript, vite (not change)

hehehai commented 2 years ago

crates/* workspace member

🤔 trigger: is workspace member some path has *

about github repo trees API: https://api.github.com/repos/bevyengine/bevy/git/trees/main?recursive=1

  1. get current repo base link and branch
  2. get repo tree
  3. convert flat tree to nest tree
  4. find workspace like crates/* has * symbol, get this dir lineal children
  5. render workspace sub list in parent crates/*

❗️need cache the tree api data, High frequency requests will trigger current limiting of GitHub