Development Setup
Prerequisites
| Requirement | Version | Install |
|---|---|---|
| Rust | 1.75+ | rustup.rs |
| SQL Server access | 2025 | Database credentials for at least one region |
No ODBC driver is needed — Efision uses Tiberius (pure Rust TDS driver).
Clone and Configure
git clone https://github.com/Inovit-Inc/efision.git
cd efision
# Set up environment
cp .env.example .env
# Edit .env with your database credentials
Build and Run
# Debug build
cargo build
# Release build (optimized)
cargo build --release
# Run in development
cargo run -p efision-cli -- -r demo wheels count
Test
# Run all tests
cargo test
# Run tests with output
cargo test -- --nocapture
Lint
# Run clippy (required before committing)
cargo clippy
# Format code
cargo fmt
IDE Setup
For VS Code, install the rust-analyzer extension. The Cargo workspace is automatically detected.
Optional Tools
- ODBC Driver — only needed for
sqlcmd/bcpdiagnostic tools - See SQL Server Compatibility for Tiberius driver details