Instead of emitting one giant crate containing everything, we tweaked our SQL-to-Rust compiler to split the output into many smaller crates. Each one encapsulating just a portion of the logic, neatly depending on each other, with a single top-level main crate pulling them all in.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    6 days ago

    What’s the advantage of compiling to Rust here? Maybe it would be faster if they just skipped straight to LLVM.