DCAS handbook

Build from source

tl;dr git cargo rustc clang.

Get Rust and Cargo. Visit rust-lang.org for installation instructions.

Make sure clang or gcc is installed.

Clone repo:

git clone https://gitlab.com/somobu/dcas.git

Build and run:

cd dcas && cargo run

Features

Certain parts of server are disabled by default and can be enabled during build time. This mechanism is called feature flags (you may think of it as of CMake options). See feture flags page for info on which features exists and how to use them.

Certain features uses openssl library. You’ll unserstand that openssl is required when you see the compilation error log. In that case you can install openssl-dev (known as libssl-dev on Debian) system-wide or build project with --features openssl-bundled.

Docker/podman build

In this case you may safely ignore all above and just:

  1. Clone repo;
  2. Run ./tools/release_glibc.sh:
    • Docker note: replace podman w/ docker;
  3. Pick up dcas binary from project root;

Linux build tips

You can use Clang and Mold on Linux. To do so, install both tools and add the following lines to .cargo/config.toml:

[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]