We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0121d66 commit b77e4e9Copy full SHA for b77e4e9
src/cargo/util/toml/mod.rs
@@ -1398,8 +1398,12 @@ impl TomlManifest {
1398
);
1399
if project.license_file.is_some() && project.license.is_some() {
1400
manifest.warnings_mut().add_warning(
1401
- "only one of `license` or \
1402
- `license-file` is necessary"
+ "only one of `license` or `license-file` is necessary\n\
+ `license` should be used if the package license can be expressed \
1403
+ with a standard SPDX expression.\n\
1404
+ `license-file` should be used if the package uses a non-standard license.\n\
1405
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields \
1406
+ for more information."
1407
.to_string(),
1408
1409
}
0 commit comments