{"id":58236,"library":"core-foundation-sys","title":"Core-foundation-sys","description":"Bindings to Core Foundation for macOS","status":"active","version":"0.8.7","language":"rust","source_language":null,"source_url":"https://github.com/servo/core-foundation-rs","tags":["core-foundation","macos","ffi","system"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncore-foundation-sys = \"0.8.7\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add core-foundation-sys","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"CFTypeRef","correct":"use core_foundation_sys::base::CFTypeRef;"}],"quickstart":{"code":"use core_foundation_sys::base::CFTypeRef;\n\nfn main() {\n    let null: CFTypeRef = std::ptr::null();\n    println!(\"CFTypeRef null: {:?}\", null);\n}","lang":"rust","description":"Use Core Foundation type references"},"warnings":[{"fix":"Use cfg(target_os = \"macos\") or cfg(target_os = \"ios\") to gate usage","message":"Only works on macOS/iOS","severity":"gotcha","affected_versions":">=0.8.0"}],"env_vars":null,"search_vec":"'bind':5 'core':2,7,12 'core-found':11 'core-foundation-si':1 'ffi':15 'foundat':3,8,13 'maco':10,14 'sys':4 'system':16","created_at":"2026-06-16T16:16:18.633587+00:00","updated_at":"2026-06-16T16:16:18.633587+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/servo/core-foundation-rs","github":"https://github.com/servo/core-foundation-rs","docs":"https://docs.rs/core-foundation-sys/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"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}}