pub fn get_granularity() -> usize
This function retrieves the system’s memory allocation granularity.
extern crate page_size; println!("{}", page_size::get_granularity());