a3b046c68f
Major changes: - Migrate Python/shell scripts to Rust modules: - analytics/extract.py → src/analytics/extract.rs (ReportExtractor) - analytics/analyze.py → src/analytics/analyze.rs (DealAnalyzer) - scripts/mqlcompile.sh → src/compile/mql_compiler.rs (MqlCompiler) - scripts/backtest_pipeline.sh → src/pipeline/backtest.rs (BacktestPipeline) - New modular structure: - src/models/ - Config, Deal, Metrics, Report structs - src/analytics/ - Report parsing and deal analysis - src/compile/ - MQL5 compilation via Wine - src/pipeline/ - 5-stage backtest orchestration - src/tools/ - 27 MCP tool definitions and handlers - Remove PyInstaller setup (now pure Rust) - Remove migrated shell scripts (backtest_pipeline.sh, mqlcompile.sh) - Add GitHub Actions CI/CD for macOS & Linux releases - Update all documentation for Rust architecture Binary size: 4.3MB (no Python dependencies) Tools: 27 MCP tools fully functional
33 lines
692 B
Bash
Executable File
33 lines
692 B
Bash
Executable File
#!/bin/bash
|
|
# Build MT5-Quant Rust MCP Server
|
|
# Output: target/release/mt5-quant
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
cd "$PROJECT_ROOT"
|
|
|
|
echo "=== MT5-Quant Rust Build ==="
|
|
echo "Project root: $PROJECT_ROOT"
|
|
echo ""
|
|
|
|
echo "Building release binary..."
|
|
cargo build --release
|
|
|
|
echo ""
|
|
echo "=== Build Complete ==="
|
|
echo ""
|
|
echo "Executable location:"
|
|
ls -lh "$PROJECT_ROOT/target/release/mt5-quant"
|
|
|
|
echo ""
|
|
echo "To test:"
|
|
echo " ./target/release/mt5-quant --help"
|
|
echo ""
|
|
echo "To install for Windsurf:"
|
|
echo " Update ~/.windsurf/config.yaml:"
|
|
echo " command: $PROJECT_ROOT/target/release/mt5-quant"
|
|
echo ""
|