{"id":58596,"library":"sysctl","title":"Sysctl","description":"Simplified interface to libc::sysctl","status":"active","version":"0.7.1","language":"rust","source_language":null,"source_url":"https://github.com/johalun/sysctl-rs","tags":["sysctl","system","unix"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nsysctl = \"0.7.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add sysctl","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Sysctl","correct":"use sysctl::Sysctl;"}],"quickstart":{"code":"use sysctl::Sysctl;\n\nfn main() {\n    let sys = sysctl::Sysctl::new(\"kern.hostname\").unwrap();\n    println!(\"{:?}\", sys.value_string());\n}","lang":"rust","description":"Read a sysctl MIB value by name."},"warnings":[{"fix":"Use conditional compilation or fallback for other platforms.","message":"Only works on Unix-like systems with sysctl support (e.g., macOS, FreeBSD).","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'interfac':3 'libc':5 'simplifi':2 'sysctl':1,6,7 'system':8 'unix':9","created_at":"2026-06-16T16:30:42.075348+00:00","updated_at":"2026-06-16T16:30:42.075348+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/johalun/sysctl-rs","github":"https://github.com/johalun/sysctl-rs","docs":"https://docs.rs/sysctl/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}