The file src/lib.rs was included in several build targets and caused a warning during the build process. This was because the file was implicitly treated as an entry point for the library (lib.rs) and explicitly defined as a binary target.
The [[bin]] section has been removed from the Cargo.toml file to resolve this conflict. In addition, the build command has been updated to remove the --bin flag, which is no longer necessary. The project can now be built cleanly and without warnings while maintaining the expected functionality.
The file
src/lib.rs
was included in several build targets and caused a warning during the build process. This was because the file was implicitly treated as an entry point for the library (lib.rs) and explicitly defined as a binary target.The
[[bin]]
section has been removed from theCargo.toml
file to resolve this conflict. In addition, the build command has been updated to remove the--bin
flag, which is no longer necessary. The project can now be built cleanly and without warnings while maintaining the expected functionality.