Perhaps use foo.rs/bar.rs instead of the default main/lib package root file?
How to config it?
Perhaps use foo.rs/bar.rs instead of the default main/lib package root file?
How to config it?
For a library, set [lib].path:
[lib]
path = "src/bar.rs"
For a binary, set [[bin]].path:
[[bin]]
name = "foo"
path = "src/foo.rs"