CargoTomlRequiredConfig
Defined in: policies/CargoTomlRequired.ts:12
Configuration for the CargoTomlRequired policy.
Properties
Section titled “Properties”expectedValues?
Section titled “expectedValues?”
optionalexpectedValues?:Record<string,string>
Defined in: policies/CargoTomlRequired.ts:34
Specific field values to enforce. Keys are field names, values are expected values.
minimumEdition?
Section titled “minimumEdition?”
optionalminimumEdition?:string
Defined in: policies/CargoTomlRequired.ts:23
Minimum Rust edition to require (e.g., “2021”).
If set, the edition field must exist and be at least this value.
required?
Section titled “required?”
optionalrequired?:string[]
Defined in: policies/CargoTomlRequired.ts:17
Fields that must exist in the [package] section.
Default Value
Section titled “Default Value”["license", "description"]requireRustVersion?
Section titled “requireRustVersion?”
optionalrequireRustVersion?:boolean
Defined in: policies/CargoTomlRequired.ts:29
If true, require the rust-version field (MSRV) to be set.
Default Value
Section titled “Default Value”false