update rust compiler flags
update create definition and remove main.rs warnings