renovate/lib/modules/manager/cargo/index.ts
Rhys Arkins 016e647390
feat(config)!: default to rangeStrategy=auto, prefer update-lockfile (#19942)
Changes `rangeStrategy` default value from `'replace'` to `'auto'`. Also changes `auto` behavior so that `update-lockfile` is preferred if the manager
supports the `updateLockedDependency()` function.

Closes #19800

BREAKING CHANGE: Renovate will now default to updating locked dependency versions. To revert to previous behavior, configure rangeStrategy=replace.
2023-03-10 09:25:45 +01:00

19 lines
684 B
TypeScript

import type { ProgrammingLanguage } from '../../../constants';
import { CrateDatasource } from '../../datasource/crate';
import * as cargoVersioning from '../../versioning/cargo';
import { updateArtifacts } from './artifacts';
import { extractPackageFile } from './extract';
export { getRangeStrategy } from './range';
export const language: ProgrammingLanguage = 'rust';
export const supportsLockFileMaintenance = true;
export { extractPackageFile, updateArtifacts };
export const defaultConfig = {
commitMessageTopic: 'Rust crate {{depName}}',
fileMatch: ['(^|/)Cargo\\.toml$'],
versioning: cargoVersioning.id,
};
export const supportedDatasources = [CrateDatasource.id];