Development Guide
This guide covers setting up a development environment for NCN Network v2.
Quick Start
# Clone repository
git clone https://github.com/neurochainai/ncn-network-v2-rs.git
cd ncn-network-v2-rs
# Build all components
cargo build
# Run tests
cargo test --all
# Start services for local development
./scripts/start-local.shDevelopment Guides
Prerequisites and initial setup:
Installing Rust, Python, and Git
IDE configuration
Development tools
Building from source:
Full workspace build
Individual component builds
Docker image builds
Troubleshooting build issues
Local development workflow:
Starting all services
Development mode configuration
Hot reloading
Connecting components
Test suites and coverage:
Unit tests
Integration tests
Contract tests
Security tests
Load testing
Debug tips and techniques:
Logging configuration
Debug builds
Profiling
Common issues
Development Workflow
Typical Development Cycle
Code Style
Follow Rust 2021 edition
Use
cargo fmtfor formattingUse
cargo clippyfor lintingDocument public APIs
Add tests for new features
Quick Reference
Build Commands
Test Commands
Run Commands
Useful Environment Variables
Next Steps
Last updated
