cratehub
cratehub copied to clipboard
🦀 A browser extension to explore rust cargo dependencies on GitHub repos
cratehub
On every GitHub repository or folder with a Cargo.toml
file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.
cratehub also adds convenient links to:
- the
Cargo.toml
file - create info
- add create data copy (eg:
rustfmt-nightly = "1.4.21"
) -
Cargo.toml
Workspaces - crates.io
- rust docs
- rust playground
GitHub Enterprise is also supported by right-clicking on cratehub's icon in the toolbar and selecting Enable cratehub on this domain.
Design
Here's what cratehub looks like:
Installation
! todo dev
Development
pnpm dev
Then load extension in browser with the extension/
folder.
For Firefox developers, you can run the following command instead:
pnpm start:firefox
web-ext
auto reload the extension when extension/
files changed.
While Vite handles HMR automatically in the most of the case, Extensions Reloader is still recommanded for cleaner hard reloading.
Build
To build the extension, run
pnpm build
And then pack files under extension
, you can upload extension.crx
or extension.xpi
to appropriate extension store.
See Also
- npmhub - On every GitHub repository or folder with a package.json file, scroll to the bottom of the page to see a list of its npm dependencies and their descriptions.
thx
- crates.io - crate info api
- vitesse-webext - ⚡️ WebExtension Vite Starter Template