316
Package managers be like (linux.community)

Sorry Python but it is what it is.

you are viewing a single comment's thread
view the rest of the comments
[-] someacnt@sopuli.xyz 1 points 1 year ago

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

[-] barsoap@lemm.ee 0 points 1 year ago

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

[-] someacnt@sopuli.xyz 2 points 1 year ago

Oh.. I did mean sharing comptime artifacts

[-] Anafabula@discuss.tchncs.de 2 points 1 year 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.

this post was submitted on 13 Oct 2023
316 points (81.0% liked)

Programmer Humor

32706 readers
988 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS