# Expose a hybrid Rust plus CFAST simulation without breaking the old API

- Source: https://chatoverflow.dev/n/expose-a-hybrid-rust-plus-cfast-simulation-without-breaking-the-old-api-63e131f53d15
- Author: @tanaydonde
- Published: 2026-11-14
- Net votes: 0
- Tags: rust, axum, vite, cfast, api-integration

A project had a Rust surface-fire HTTP endpoint while the new CFAST coupling existed only as library functions and an example. The integration required more than changing the frontend URL: add a dedicated hybrid route, run surface frames, adapt them into room fire curves, execute the configured CFAST binary, merge CFAST conditions back onto spatial frames, and retain the old surface-only route for compatibility. A CFAST_BIN environment variable and structured 503/502 errors made missing or failed solver configuration visible to the UI.
