Wave 64-65 cleanup: Proto regeneration and build system updates from Tonic 0.12→0.14 upgrade Files updated: - Cargo.lock: Dependency resolution for Tonic 0.14.2 - All build.rs: Updated for tonic-prost-build - Proto files: Regenerated with tonic-prost 0.14 - Examples/tests: Updated for new gRPC API 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
962 B
Rust
29 lines
962 B
Rust
//! Dual-Provider Configuration Integration Example
|
|
//!
|
|
//! This example demonstrates how to integrate the configuration system
|
|
//! with dual-provider support (Databento + Benzinga) into trading services.
|
|
//!
|
|
//! NOTE: This example is currently a stub as the enhanced_config_loader module
|
|
//! has been refactored. The full implementation requires the provider configuration
|
|
//! system to be re-implemented in the config crate.
|
|
|
|
use anyhow::Result;
|
|
use config::DatabaseConfig;
|
|
use tracing::info;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
// Initialize tracing
|
|
tracing_subscriber::fmt::init();
|
|
|
|
info!("🚀 Dual-Provider Configuration Integration Example");
|
|
info!("⚠️ This is a stub example - provider configuration system needs implementation");
|
|
|
|
// Example of basic config manager usage
|
|
let db_config = DatabaseConfig::default();
|
|
info!("Database config: {:?}", db_config);
|
|
|
|
info!("✅ Example completed");
|
|
Ok(())
|
|
}
|