Location at which build/generation artifact will be written
All build artifacts are stored under a single build cache,
which is usually located under $HOME/.dub/cache/ on POSIX,
and %LOCALAPPDATA%/dub/cache on Windows.
Versions of dub prior to v1.31.0 used to store artifact under the
project directory, but this led to issues with packages stored on
read-only file system / location, and lingering artifacts scattered
through the file system.
Dub writes in the cache directory some Json description files
of the available artifacts. These files are intended to be read by
3rd party software (e.g. Meson). The default cache location specified
in this function should therefore not change across future Dub versions.
Location at which build/generation artifact will be written
All build artifacts are stored under a single build cache, which is usually located under $HOME/.dub/cache/ on POSIX, and %LOCALAPPDATA%/dub/cache on Windows.
Versions of dub prior to v1.31.0 used to store artifact under the project directory, but this led to issues with packages stored on read-only file system / location, and lingering artifacts scattered through the file system.
Dub writes in the cache directory some Json description files of the available artifacts. These files are intended to be read by 3rd party software (e.g. Meson). The default cache location specified in this function should therefore not change across future Dub versions.