Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hehehai/cratehub
🦀 A browser extension to explore rust cargo dependencies on GitHub repos
https://github.com/hehehai/cratehub
browser-extension cargo crates extension rust
Last synced: 2 months ago
JSON representation
🦀 A browser extension to explore rust cargo dependencies on GitHub repos
- Host: GitHub
- URL: https://github.com/hehehai/cratehub
- Owner: hehehai
- License: mit
- Created: 2022-06-04T07:57:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T13:40:16.000Z (over 2 years ago)
- Last Synced: 2024-05-30T02:10:53.770Z (8 months ago)
- Topics: browser-extension, cargo, crates, extension, rust
- Language: TypeScript
- Homepage:
- Size: 414 KB
- Stars: 25
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://crates.io/)
- [rust docs](https://docs.rs/)
- [rust playground](https://play.rust-lang.org/)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:
![cratehub on Chrome](https://user-images.githubusercontent.com/12692552/173165981-414dc36d-a11b-4e09-b92f-7c1333f84ea0.png)
## Installation
[link-chrome]: https://chrome.google.com/webstore/detail/createhub/ipcffemefdnmgnhkpdkenddfoebpejei 'Version published on Chrome Web Store'
[link-firefox]: https://addons.mozilla.org/addon/cratehub/ 'Version published on Mozilla Add-ons'[][link-chrome] [][link-chrome] also compatible with [][link-chrome] [][link-chrome]
[][link-firefox] [][link-firefox]
! todo dev
### Development
```bash
pnpm dev
```Then **load extension in browser with the `extension/` folder**.
For Firefox developers, you can run the following command instead:
```bash
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](https://chrome.google.com/webstore/detail/fimgfedafeadlieiabdeeaodndnlbhid) is still recommanded for cleaner hard reloading.
### Build
To build the extension, run
```bash
pnpm build
```And then pack files under `extension`, you can upload `extension.crx` or `extension.xpi` to appropriate extension store.
## See Also
- [npmhub](https://github.com/npmhub/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](https://crates.io/) - crate info api
- [vitesse-webext](https://github.com/antfu/vitesse-webext) - ⚡️ WebExtension Vite Starter Template