Package Details: dust 0.5.4-1

Git Clone URL: (read-only, click to copy)
Package Base: dust
Description: du + rust = dust. Like du but more intuitive
Upstream URL:
Licenses: Apache
Submitter: luzifer
Maintainer: luzifer
Last Packager: luzifer
Votes: 21
Popularity: 1.16
First Submitted: 2018-11-09 20:09
Last Updated: 2021-01-16 16:55

Required by (0)

Sources (1)

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 to cargo.

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 via export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-target} in build and use ${CARGO_TARGET_DIR:-target} instead of target in package.

The environment variable overrules the target-dir setting and still allows people to set CARGO_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?