stuck 0.4.1

Multi-threading scheduled task facility building on cooperative stackful coroutine
Documentation
use lazy_static::lazy_static;

lazy_static! {
    static ref PAGE_SIZE: usize = unsafe {
        let rc = libc::sysconf(libc::_SC_PAGESIZE);
        if rc == -1 {
            panic!("fail to evaluate sysconf(_SC_PAGESIZE), got errno {}", errno::errno());
        }
        rc as usize
    };
}

/// Returns page size which is a non zero power of 2 integer.
pub fn get() -> usize {
    *PAGE_SIZE
}

#[cfg(test)]
mod tests {
    use pretty_assertions::{assert_eq, assert_ne};

    #[test]
    fn page_size() {
        let n = super::get();
        assert_ne!(n, 0);
        assert_eq!(n & (n - 1), 0);
    }
}