Search Criteria
Package Details: dust 0.5.4-1
Git Clone URL: | https://aur.archlinux.org/dust.git (read-only, click to copy) |
---|---|
Package Base: | dust |
Description: | du + rust = dust. Like du but more intuitive |
Upstream URL: | https://github.com/bootandy/dust |
Licenses: | |
Submitter: | luzifer |
Maintainer: | luzifer |
Last Packager: | luzifer |
Votes: | 20 |
Popularity: | 3.91 |
First Submitted: | 2018-11-09 20:09 |
Last Updated: | 2021-01-16 16:55 |
Dependencies (1)
- cargo (cargo-standalone-git, cargo-nightly-bin, cargo-git, rust-bin, rustup-git, rust-nightly-bin, rust-wasm, rust, rustup) (make)
Latest Comments
hrniels commented on 2020-09-06 07:59
hm. Different compiler versions could be an issue. But different workspaces with different build settings shouldn't be. The official documentation doesn't say anything against a shared target directory, as far as I've seen, and Stackoverflow also says that it should work (although Shepmaster questions its benefits).
That said, after doing some more research it seems that no AUR package currently supports my attempt to share build outputs. The build either breaks if
CARGO_TARGET_DIR
is set or it's ignored, because--target-dir
is passed tocargo
.So, never mind :)
Celti commented on 2020-09-06 06:48
A global cargo target dir is a terrible idea. Sharing it between multiple workspaces and compiler versions (both of which will inevitably happen) will cause needless issues unless you nuke it between runs — in which case the "sharing" is pointless.
hrniels commented on 2020-09-05 05:54
Instead of setting --target-dir, I think it is better to set
CARGO_TARGET_DIR
viaexport CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-target}
inbuild
and use${CARGO_TARGET_DIR:-target}
instead oftarget
inpackage
.The environment variable overrules the
target-dir
setting and still allows people to setCARGO_TARGET_DIR
globally in order to put all built crates into one place.gyara commented on 2019-10-20 01:59
Thanks for your response. It works well now.
luzifer commented on 2019-10-19 13:03
@gyara: Sorry for the delay, a new version has just landed containing your suggestion. In a clean environment (Docker container) it still builds fine, please test whether your build-issue is fixed too.
gyara commented on 2019-10-10 02:37
this PKGBUILD file can not work when I set target dir in cargo config. May use --target-dir $PWD/target option to fix?