Skip to content

Commit 0cb077f

Browse files
committed
cargo: The default executable is src/main.rs
https://doc.rust-lang.org/cargo/guide/project-layout.html
1 parent 6b062a1 commit 0cb077f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/cargo/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class Binary(BuildTarget):
365365
def from_raw(cls, raw: raw.BuildTarget, pkg: Package) -> Self:
366366
name = raw["name"]
367367
return _raw_to_dataclass(raw, cls, f'Binary entry {name}',
368-
path=DefaultValue(f'bin/{name}.rs'),
368+
path=DefaultValue('src/main.rs'),
369369
edition=DefaultValue(pkg.edition))
370370

371371

0 commit comments

Comments
 (0)