Skip to content
Merged
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
12 changes: 10 additions & 2 deletions credible/credible-install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,25 @@ This will install the `pcl` binary.

Another convenient way to install `pcl` is using Cargo. It does require a couple of pre-requisites though:

- **Rust Nightly** (version 1.80 or later)
- **Rust Stable** (version 1.81 or later) or **Rust Nightly** (version 1.80 or later)
- **Git**

```bash
cargo +nightly install --git https://github.com/phylaxsystems/credible-sdk --locked pcl
```

<Note>
If above fails, try updating Rust with `rustup update` and try again.
</Note>

This will install the `pcl` binary in your Cargo installation directory (typically `~/.cargo/bin` on Unix-like systems). Make sure this directory is in your PATH.

### Option 3: Build from Source

This option is recommended if you want more control over the build process or prefer to build from source.

Prerequisites:
- **Rust Nightly** (version 1.80 or later)
- **Rust Stable** (version 1.81 or later) or **Rust Nightly** (version 1.80 or later)
- **Git**

1. Clone the repository:
Expand All @@ -50,6 +54,10 @@ Prerequisites:
cargo build --release --bin pcl
```

<Note>
If above fails, try updating Rust with `rustup update` and try again.
</Note>

3. The compiled binary will be available in the `target/release` directory.

4. (Optional) Add the binary to your PATH for easier access:
Expand Down