Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 982 Bytes

BUILDING.md

File metadata and controls

50 lines (34 loc) · 982 Bytes

Building Crusader from source

Reminder: Pre-built binaries are available for everyday tests.

Required dependencies

  • A Rust and C toolchain.
  • fontconfig (optional, required for crusader-gui)

Note: To install fontconfig on Ubuntu:

sudo apt install libfontconfig1-dev

Building Crusader

To develop or debug Crusader, use the commands below to build the full set of binaries. Executables are placed in src/target/release

To build the crusader command line executable:

cd src
cargo build -p crusader --release

To build both command line and GUI executables:

cd src
cargo build --release

Debug build

Create a debug build by using cargo build (instead of cargo build --release). Binaries are saved in the src/target/debug directory

Docker

To build a docker container that runs the server:

cd docker
docker build .. -t crusader -f server-static.Dockerfile