Sorry Python but it is what it is.

  • barsoap
    link
    fedilink
    arrow-up
    10
    ·
    8 months ago

    cached copies of crates that you downloaded

    Meh, what else is it supposed to do, delete sources all the time? Then people with slow connections will complain.

    Also size-wise that’s actually not even much (though they could take the care to compress it), what actually takes up space with rust is compile artifacts, per workspace. Have you heard of kondo?

    • someacnt@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      Idk, maybe you can share the common packages across projects. (That can never go wrong, right? /s)

      • barsoap
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        Sources are shared, sharing compile-time artefacts is done within workspaces.

          • Anafabula@discuss.tchncs.de
            link
            fedilink
            arrow-up
            2
            ·
            8 months ago

            You can globally share compile artifacts by setting a global target directory in the global Cargo config.

            In $HOME/.cargo/config.toml:

            [build]
            target-dir = "/path/to/dir"
            

            The only problems I had when I did it where some cargo plugins and some dependencies with build.rs files that expected the target folder in it’s usual location.