Cargo web start --auto-reload and handling REST calls

  1. I’m building an app where server = Rust, client = Rust/wasm32.

  2. I’m loading the client via “carbo web start --auto-reload” which is nice as it auto recompiles + reloads on source change.

  3. Now I need a way to send /api/* requests to a Rust REST handler.

  4. My choices seems to be: (1) send all requests to a web server (probably in Rust), send /api to the Rust REST API, and everything else to cargo web (2) send everything to cargo web, and somehow tell cargo web to forward /API requests to Rust REST API.

  5. Advice?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.