Install gnaw
TL;DR
cargo install gnaw-ctx
Prerequisite
Make sure Rust and cargo are installed on your system.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
This is the official way to install the latest stable version of Rust and
Cargo. Make sure to refresh your PATH variable after installing Rust. Restart
your terminal or run the instructions proposed by the installer.
source $HOME/.cargo/env
You can check that everything is installed correctly by running:
cargo --version
git --versionCommand Line Interface (CLI) ๐จโ๐ป
cargo install gnaw-ctx
๐งช Install the latest (unpublished) version from GitHub
If you want the latest features or fixes before they're released on crates.io:
cargo install --git https://github.com/gitbadger-clan/gnawSource build
Ideal for developers that want to build from source or contribute to the project.
- ๐ ๏ธ Install prerequisites: Rust and Cargo, plus Git.
- ๐ฅ Clone the repository:
git clone https://github.com/gitbadger-clan/gnaw.git cd gnaw - ๐ฆ Install the binary. To build and install from source:
To build the binary without installing it:cargo install --path crates/gnaw-ctx
The binary will be available in thecargo build --releasetarget/releasedirectory. - ๐ Run it:
gnaw --help
Binary releases
Best for users that want to use the latest version without building from source. Download the latest binary for your OS from Releases.
Python bindings ๐
The Python package is built with PyO3/maturin and is not yet published to PyPI. To build it from source:
- ๐ ๏ธ Install prerequisites: Rust and Cargo, Git, and maturin.
- ๐ฅ Clone the repository:
git clone https://github.com/gitbadger-clan/gnaw.git cd gnaw/crates/gnaw-python - โ๏ธ Build the package into your virtual environment:
maturin develop -r
REST interface ๐
A REST interface for browser-extension integration is planned and will be documented here when it ships.