The following filesize program demonstrates how to get a file's size in Rust.
This zip file contains the complete crate.