Skip to content

Commit d815619

Browse files
committed
fix(toml): Prevent multi-crate fields in Cargo scripts
1 parent d9e3424 commit d815619

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ pub fn to_real_manifest(
14341434
autoexamples,
14351435
autotests,
14361436
autobenches,
1437-
default_run: _,
1437+
default_run,
14381438
description: _,
14391439
homepage: _,
14401440
documentation: _,
@@ -1458,6 +1458,7 @@ pub fn to_real_manifest(
14581458
("`package.autoexamples`", autoexamples.is_some()),
14591459
("`package.autotests`", autotests.is_some()),
14601460
("`package.autobenches`", autobenches.is_some()),
1461+
("`package.default-run`", default_run.is_some()),
14611462
]);
14621463
}
14631464
let invalid_fields = invalid_fields

0 commit comments

Comments
 (0)