Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from_source.md #673

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions manual/src/from_source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# From Source

## Install Rust / Cargo

Install Rust / Cargo by following the official instructions [rust-lang.org](https://www.rust-lang.org/tools/install).

### Ubuntu

You can install cargo in Ubuntu via apt

```
sudo apt install cargo
```

## Clone the repository

In some directory of your choice:

```
git clone [email protected]:Wilfred/difftastic.git
```

## Compile and install

```
cd difftastic && cargo install --path .
```

## Update PATH (Linux)

If you installed cargo with the default settings:

```
echo "export PATH=$PATH:~/cargo/bin" >> ~/.bashrc
. ~/.bashrc
```

## Check installation

```
difft --version
```

should output something like

```
Difftastic 0.57.0 (caf8760de 2024-03-22, built with rustc 1.75.0)
```
Loading