kache

Configuration

OptionTypeDefaultRequired
cacheExecutablesboolfalseno

Example

export const kacheConfig = {
    cacheExecutables: false,
};

kacheToolchain()

kacheToolchain(version, opts = {})

Declare a kache toolchain version and optionally set it as the default. matching lockfile entry (warns instead of failing). KACHE_CACHE_DIR's on-disk size (kache's own default is 50 GiB; imp's GC can't prune inside it, only delete it wholesale — see RustKacheWrapper's doc comment).

ParameterTypeDescription
versionstring
[opts]object
[opts.default=false]boolean
[opts.unverified=false]booleanAllow downloading without a
[opts.cacheSize="4GiB"]stringKACHE_MAX_SIZE — caps

Returns: object Target handle for this kache toolchain.