Development Setup

Set up your local development environment.

Prerequisites

1
2
3
4
5
6
7
8
9
# Rust stable + nightly
rustup toolchain install stable nightly

# Clippy and rustfmt
rustup component add clippy
rustup component add rustfmt --toolchain nightly

# Docling (for PDF tests)
pip install docling

Clone and Build

1
2
3
4
5
6
7
8
git clone https://github.com/mrizzi/fortified-llm-client
cd fortified-llm-client

# Build
cargo build

# Run tests
cargo test

Development Workflow

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Make changes
vim src/...

# Format code
cargo +nightly fmt

# Check compilation
cargo check

# Run linter
cargo clippy

# Run tests
cargo test

# Run specific test
cargo test test_name -- --nocapture

IDE Setup

VS Code

Install extensions:

  • rust-analyzer
  • CodeLLDB (debugging)

.vscode/settings.json:

1
2
3
{
  "rust-analyzer.checkOnSave.command": "clippy"
}

IntelliJ IDEA

Install Rust plugin, enable Clippy in settings.