Cargo: invalid character `.` in cart name

Let's assume my executable will be called "index.cgi" (or whatever name is not the correct Rust box name) and will be created with Cargo.
Is there a way in Cargo to specify the name of the executable, or rename the executable at the post-build stage? Cargo documentation is very sparse and I didn't find anything there. (A quick look at the sources didn't help either.)

+3


source to share


1 answer


Executable names and names must be valid Rust IDs.




You can set the name of the output executable (see Setting Target in the documentation for the document ) , but this must also be a valid identifier.

[[bin]]
name = "index.cgi"
path = "src/main.rs"

      

+4


source







All Articles