pkgcheck.checks.rust module¶
- class pkgcheck.checks.rust.RustCheck(options, **kwargs)[source]¶
Bases:
CheckChecks for rust related issues.
- known_results = frozenset({<class 'pkgcheck.checks.rust.SuboptimalCratesSeparator'>, <class 'pkgcheck.checks.rust.SuboptimalCratesURICall'>, <class 'pkgcheck.checks.rust.TooManyCrates'>})¶
- scope = <PackageScope desc='version' @0x7f764341d220>¶
- class pkgcheck.checks.rust.SuboptimalCratesSeparator(line, lineno, **kwargs)[source]¶
Bases:
LineResult,WarningUsing
-as name-version separator inCRATESis suboptimal.The
CRATESvariable is a space separated list of crates. The eclass supports specifying the crate name and version asname@versionand asname-version. The latter is suboptimal as it’s slower.It is recommended to use
pycargoebuild0.7+ to generate newCRATES.- property desc¶
Result description.
- name = 'SuboptimalCratesSeparator'¶
- class pkgcheck.checks.rust.SuboptimalCratesURICall(line, lineno, **kwargs)[source]¶
Bases:
LineResult,WarningCalling
cargo_crate_uriswithCRATESis suboptimal, use${CARGO_CRATE_URIS}.Calls to
$(cargo_crate_uris)and$(cargo_crate_uris ${CRATES})are suboptimal, and can be replaces with${CARGO_CRATE_URIS}which is pre-computed, faster and doesn’t require sub-shell in global-scope.- property desc¶
Result description.
- name = 'SuboptimalCratesURICall'¶
- class pkgcheck.checks.rust.TooManyCrates(count: int, **kwargs)[source]¶
Bases:
VersionResult,WarningToo many crates in
CRATESvariable.The
CRATESvariable is a space-separated list of crates. When it has more than 300 crates, it can cause performance issues for metadata generation and package manager handling. It is recommended to use a crates tarball instead.- property desc¶
Result description.
- name = 'TooManyCrates'¶