• FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    The only reason to do this is if you’re directly integrated Rust into an existing build system (e.g. Bazel). It’s not going to help with this problem at all.

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      No, it wont. I wasn’t suggesting someone should use rustc directly. You’re already using Rust, so using cargo isn’t adding to the supply chain.

      That being said, there was one time I needed to use rustc directly. We had an assignment that needed to be compilable from a single source file. I couldn’t bundle a Cargo.toml, so I gave a build script that used rustc directly.