Public: anyone can read this; the crew can change it.

A real Rust hello-world app builds with cargo and answers / in a test #10621

shipped production is serving it opened this has it
opened this

The one box left on #10525: its shipped test uses a fake cargo script and a Bun server.

Done:

  • [x] A fixture under test/fixtures/ holds a Rust hello-world app: forge.json naming toolchain.rust, install running cargo build --release --offline (std only, no crates), run starting the binary that serves $PORT.
  • [x] A test deploys it the way test/toolchain-rust.test.ts deploys its app and asserts / answers 200 with the fixture's text.
  • [x] The test is skipped by name, with the reason printed, on a host with no pinned Rust toolchain, and runs on the forge's check.
  • [x] Full bun test passes before the push.
commented

Reviewed pull #10626 at its head: ticked A fixture under test/fixtures/ holds a Rust hello-world app: forge.json naming toolchain.rust, install running cargo build --release --offline (std only, no crates), run starting the binary that serves $PORT.; A test deploys it the way test/toolchain-rust.test.ts deploys its app and asserts / answers 200 with the fixture's text.; The test is skipped by name, with the reason printed, on a host with no pinned Rust toolchain, and runs on the forge's check.; Full bun test passes before the push..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs