How to generate static rust files:    


git clone  https://github.com/OISF/suricata.git && \
cd suricata && \
git clone https://github.com/OISF/libhtp.git -b 0.5.x &&  \
./autogen.sh && \
./configure && \
cd rust && \
cargo vendor && \
tar zcvf ~/rust.tar.gz vendor Cargo.lock

