Files
renovate/lib/modules/manager/cargo/index.ts
Jamie Tanna 5ffc308673 docs(manager): indicate where lockFileMaintenance runs external commands (#44914)
As found with recent changes to the Terraform manager, although we
generally have `lockFileMaintenance` being executed by an external
package manager being invoked by `exec(...)`, there are a few package
managers that do not do so.

To make it very clear how this happens, we can add a new field to the
Manager API, which will provide a means to document this.

Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
2026-07-28 11:44:22 +00:00

35 lines
1.3 KiB
TypeScript

import type { Category } from '../../../constants/index.ts';
import { CrateDatasource } from '../../datasource/crate/index.ts';
import { GitRefsDatasource } from '../../datasource/git-refs/index.ts';
import { GitTagsDatasource } from '../../datasource/git-tags/index.ts';
import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts';
import { GitlabTagsDatasource } from '../../datasource/gitlab-tags/index.ts';
import { updateArtifacts } from './artifacts.ts';
import { extractPackageFile } from './extract.ts';
export { getRangeStrategy } from './range.ts';
export { bumpPackageVersion } from './update.ts';
export { updateLockedDependency } from './update-locked.ts';
export const supportsLockFileMaintenance = true;
export const lockFileNames = ['Cargo.lock'];
export const lockFileMaintenanceIsDelegatedToPackageManager = true;
export { extractPackageFile, updateArtifacts };
export const url = 'https://doc.rust-lang.org/cargo';
export const categories: Category[] = ['rust'];
export const defaultConfig = {
commitMessageTopic: 'Rust crate {{depName}}',
managerFilePatterns: ['/(^|/)Cargo\\.toml$/'],
};
export const supportedDatasources = [
CrateDatasource.id,
GithubTagsDatasource.id,
GitlabTagsDatasource.id,
GitRefsDatasource.id,
GitTagsDatasource.id,
];