Generate models on cargo build

set OUT_DIR environment variable to the directory where you want to generate the models

bash OUT_DIR=./src cargo build -vv --timings

bash OUT_DIR=./resources; cargo build --release -vv --timings -j 2