| Crates.io | f1-nexus-core |
| lib.rs | f1-nexus-core |
| version | 1.0.0-alpha.2 |
| created_at | 2025-12-13 12:27:05.699571+00 |
| updated_at | 2025-12-17 02:30:25.409623+00 |
| description | Next-generation Formula 1 strategy optimization platform with AI-powered race simulation |
| homepage | https://github.com/mrkingsleyobi/f1-nexus |
| repository | https://github.com/mrkingsleyobi/f1-nexus |
| max_upload_size | |
| id | 1982863 |
| size | 131,187 |
Core domain types and fundamental racing logic for Formula 1 strategy optimization.
[dependencies]
f1-nexus-core = "1.0.0-alpha.2"
use f1_nexus_core::*;
// Create a circuit
let monaco = Circuit {
id: "monaco".to_string(),
name: "Circuit de Monaco".to_string(),
country: "Monaco".to_string(),
typical_race_laps: 78,
lap_distance_km: 3.337,
track_characteristics: TrackCharacteristics {
avg_speed_kph: 160.0,
top_speed_kph: 290.0,
num_corners: 19,
elevation_change_m: 42.0,
overtaking_difficulty: 0.95,
tire_wear_factor: 0.7,
fuel_consumption_factor: 0.85,
},
};
// Define tire compounds
let tire = TireCompound::C3;
println!("Using tire compound: {:?}", tire);
// Create race strategy
let strategy = RaceStrategy {
id: "strategy-1".to_string(),
starting_compound: TireCompound::C3,
pit_stops: vec![],
fuel_strategy: FuelStrategy::default(),
ers_plan: ErsDeploymentPlan::default(),
expected_lap_times: BTreeMap::new(),
predicted_race_time: 0.0,
confidence: 0.85,
metadata: StrategyMetadata::default(),
};
Monaco, Silverstone, Spa-Francorchamps, Monza, Suzuka, Singapore, Abu Dhabi, and 17 more official F1 circuits with accurate track data.
Full API documentation available at docs.rs/f1-nexus-core
f1-nexus-strategy - Pit stop optimization algorithmsf1-nexus-telemetry - Real-time telemetry processingf1-nexus-cli - Command-line interfaceLicensed under either of Apache License, Version 2.0 or MIT license at your option.