Building from Source¶
Detailed instructions for building bindcar from source.
Prerequisites¶
Install Rust¶
Verify installation:
Install Dependencies¶
Ubuntu/Debian:
macOS:
Build Process¶
Debug Build¶
Output: target/debug/bindcar
Release Build¶
Output: target/release/bindcar
Optimizations: - LTO enabled - Optimized for size and speed - Debug symbols stripped
Build Options¶
Feature Flags¶
Currently no optional features. All features are enabled by default.
Custom Optimization¶
Edit Cargo.toml profile:
Cross-Compilation¶
Linux ARM64¶
rustup target add aarch64-unknown-linux-gnu
cargo build --release --target aarch64-unknown-linux-gnu
Static Binary¶
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
Docker Build¶
Build Image¶
Multi-arch Build¶
Troubleshooting¶
OpenSSL Not Found¶
# Ubuntu/Debian
sudo apt-get install libssl-dev
# macOS
brew install openssl
export OPENSSL_DIR=/usr/local/opt/openssl
Linker Errors¶
Out of Memory¶
Verification¶
# Run binary
./target/release/bindcar --version
# Test basic functionality
BIND_ZONE_DIR=.tmp/zones ./target/release/bindcar
Next Steps¶
- Running Tests - Test your build
- Development Setup - Development environment