{"id":75425,"library":"os-version","title":"OS Version","description":"Get the operating system version.","status":"active","version":"0.2.1","language":"rust","source_language":null,"source_url":"https://github.com/kpcyrd/os-version","tags":["os","version","system","utility"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nos-version = \"0.2.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add os-version","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"get_os_version","correct":"use os_version::get_os_version;"}],"quickstart":{"code":"use os_version::get_os_version;\n\nmatch get_os_version() {\n    Some(version) => println!(\"OS version: {}\", version),\n    None => println!(\"Could not determine OS version\"),\n}","lang":"rust","description":"Retrieves the current operating system version string."},"warnings":[{"fix":"Check the return value and handle the None case gracefully.","message":"The function may return None on unsupported platforms.","severity":"gotcha","affected_versions":">=0.2.0"}],"env_vars":null,"search_vec":"'get':3 'oper':5 'os':1,8 'system':6,10 'util':11 'version':2,7,9","created_at":"2026-06-17T19:16:28.648301+00:00","updated_at":"2026-06-17T19:16:28.648301+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/kpcyrd/os-version","github":"https://github.com/kpcyrd/os-version","docs":"https://docs.rs/os-version/","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-17","next_check":"2026-12-14","install_tag":null}}