stl_io
stl_io is crate for reading and writing STL (STereoLithography) files. It can read both, binary and ascii STL in a safe manner. Writing is limited to binary STL, which is more compact anyway.
Examples
Read STL file:
use OpenOptions;
let mut file = new.read.open.unwrap;
let stl = read_stl.unwrap;
Write STL file:
use OpenOptions;
let mesh = ;
let mut file = new.write.create_new.open.unwrap;
write_stl.unwrap;
For more information, check out the Documentation.