https://github.com/celeo/cargo-nav
Navigate directly to crate links from your terminal
https://github.com/celeo/cargo-nav
cargo crates jump shortcut
Last synced: 4 months ago
JSON representation
Navigate directly to crate links from your terminal
- Host: GitHub
- URL: https://github.com/celeo/cargo-nav
- Owner: Celeo
- License: apache-2.0
- Created: 2020-06-20T02:10:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-26T18:57:22.000Z (about 1 year ago)
- Last Synced: 2025-06-20T16:14:40.476Z (about 1 year ago)
- Topics: cargo, crates, jump, shortcut
- Language: Rust
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# cargo-nav
[](https://github.com/Celeo/cargo-nav/actions/workflows/ci.yml)
[](https://crates.io/crates/cargo-nav)
[](https://github.com/Celeo/cargo-nav/blob/master/Cargo.toml#L10)
Navigate directly to crate links from your terminal.
Inspired by [njt](https://github.com/kachkaev/njt).
## Installing
```sh
cargo install cargo-nav
```
## Using
Get usage information with `cargo nav --help`
Call via `cargo nav ` to jump to the homepage of that crate as listed on [crates.io](https://crates.io/). You can specify an additional argument to jump to the [r]epository, [d]ocumentation, or [c]rate pages.
```sh
cargo nav serde
cargo nav serde c
cargo nav serde crate
cargo nav serde h
cargo nav serde homepage
cargo nav serde r
cargo nav serde repository
cargo nav serde d
cargo nav serde documentation
```
The short arguments 'c', 'h', 'r', and 'd' are available as less typing to get to their respective links. Going to the crate's homepage is the default behavior.
## Developing
### Building
### Requirements
* Git
* A recent version of [Rust](https://www.rust-lang.org/tools/install)
### Steps
```sh
git clone https://github.com/Celeo/cargo-nav
cd cargo-nav
cargo build
```
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
* MIT license ([LICENSE-MIT](LICENSE-MIT))
## Contributing
Please feel free to contribute. Please open an issue first (or comment on an existing one) so that I know that you want to add/change something.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.