File: memory.rs

package info (click to toggle)
rust-effective-limits 0.5.5-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 420 kB
  • sloc: sh: 126; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 188 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#![warn(clippy::all)]

extern crate effective_limits;

fn main() -> effective_limits::Result<()> {
    println!("Effective mem limit: {}", effective_limits::memory_limit()?);
    Ok(())
}