Building from Source π‘ BETA
Build the botserver binary from the workspace with the feature bundle that matches the target product.
Build matrix
| Goal | Command | Notes |
|---|---|---|
| Server, all apps | cargo build -p botserver |
default = ["all-apps", "botcore/default"]. |
| Lean chat + Drive | cargo build -p botserver --no-default-features --features chat-drive |
The profile used by the desktop edition. |
| Minimal chat | cargo build -p botserver --no-default-features --features minimal |
Fewest dependencies. |
| With vector search | add --features vectordb |
Qdrant client crate. |
| With IMAP mail | add --features mail |
The feature is named mail, not email. |
| Check only | cargo check -p <crate> |
Launch in the background; never block a review on it. |
The full feature list is in botserver/Cargo.toml under [features]. Bundles named core, standard or enterprise do not exist.
Toolchain contract
| Setting | Value | Source |
|---|---|---|
| Parallel jobs | 3 | .cargo/config.toml [build] jobs β the single source of truth. |
| Linker | clang with -fuse-ld=mold on x86_64 Linux |
.cargo/config.toml [target.x86_64-unknown-linux-gnu]. |
| Windows libpq | path injected via GITHUB_ENV in CI, or set locally by the developer |
.cargo/config.toml deliberately does not set PQ_LIB_DIR. |
| Release profile | lto = true, opt-level = "z", strip = true, panic = "unwind", codegen-units = 1 |
root Cargo.toml [profile.release]. |
panic = "unwind" is required: chromiumoxide, used by the Vibe browser tools, relies on catch_unwind. Do not change it to abort. Low-memory hosts may override jobs with CARGO_BUILD_JOBS=1 or 2; that is an exception, not the default.
Platform notes
| Platform | Requirement |
|---|---|
| Ubuntu/Debian | clang, lld, mold, build-essential, pkg-config, libssl-dev, libpq-dev, cmake, git; Tauri builds additionally need GTK/WebKit2GTK 4.1 development packages. |
| Fedora/RHEL | clang, lld, gcc, make, pkg-config, openssl-devel, postgresql-devel, cmake, git. |
| macOS | Xcode command-line tools, PostgreSQL and OpenSSL from Homebrew. |
| Windows | Visual Studio Build Tools with the C++ workload, plus PostgreSQL client libraries (libpq) on PATH. |
Test commands
cargo test -p botcore # library crate
cargo test -p botserver --bin botserver # binary has no library target
cargo test -p bottest # cross-crate integration
cargo test -p botserver alone fails with "no library targets found"; use --bin botserver.
Limits
| Claim | Status |
|---|---|
| Rust version | Not pinned in this page; read the toolchain configuration in the repository instead of quoting prose. |
| Product version | Root Cargo.toml is authoritative (7.1.2 in this tree). |
--features email |
Wrong; the feature is mail. |
| Default jobs | 3, not 6. |
Release panic mode |
unwind, not abort. |
Related
- Module Structure β workspace members and crate responsibilities.
- Cargo Tools Reference β lint, audit and coverage tools.
- Chapter 01: Run and Talk β run the result locally.