Answer the question
In order to leave comments, you need to log in
Rust issues warning, what does it need?
When compiling, Rust issues this warning:
warning: path `/home/user/example/src/main.rs` was erroneously implicitly accepted for binary `main`,
please set bin.path in Cargo.toml
[package]
name = "example"
version = "0.1.0"
authors = ["myName"]
name = "main"
[dependencies]
...
Answer the question
In order to leave comments, you need to log in
See the last answer at https://github.com/rust-lang/cargo/issues/4293
Apparently, you need to add a path like:
name = "main"
path = "src/main.rs"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question