• rtxn@lemmy.worldM
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    19 小时前

    None of the issues you’ve described are Cargo’s fault. The long compilation time is simply rustc’s compile-time checks (ensuring type and memory safety is much more involved than lexing in GCC), and the number of dependencies to compile is a result of the crate ecosystem. Cargo is just the front-end that automates fetching dependencies and compilation with rustc. Blaming it for slow compilation is like hitting your monitor when the computer is acting up.

    • nesc@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      19 小时前

      I’m not blaming cargo specifically for building it is slow to download deps as well, which was clearly stated in my first post. I’m going to edit it now.