SQ in silver chrome letters, a lab's gear stacked against the S: a rack, two oscilloscopes, pizza boxes and a six-pack. Strange Query Lab

CARDIAC › rust-cardiac › Message codes › RCI0003

RCI0003note

Opt-level 0.

note[RCI0003]: this is opt-level 0, where rustc's MIR is unoptimized and cargo-cardiac's passes are off; most programs need opt-level 1 or more

The program was built at opt-level 0, where few programs compile for CARDIAC.

At opt-level 0 rustc writes its MIR unoptimized (an iterator's next is a call, every small helper is a call), and cargo-cardiac's own passes are off. Few programs come out small enough for 96 cells, and some constructs only compile once rustc has inlined them.

Set the opt-level to 1 or more: opt-level in the Cargo profile, or -C opt-level=2 for a single file. Building a package, cargo cardiac sets it for the dev profile when Cargo.toml doesn't.

[profile.dev]
opt-level = 2

In a terminal: cargo cardiac help RCI0003.