DEV Community

Making a Simple Calculator in Rust

YJDoc2 on October 14, 2020

Recently I came across lalrpop, a lexer-parser-generator in Rust. I had previously used flex-bison pair in C for the same, and after taking a look ...
Collapse
 
anandkeshavan profile image
anandkeshavan

cargo build give sme the following:

error[E0601]: main function not found in crate build_script_build
|
= note: consider adding a main function to src/build.rs

error: aborting due to previous error

For more information about this error, try rustc --explain E0601.
error: could not compile typical.

Any idea why?