{"id":58338,"library":"objc2-foundation","title":"ObjC2 Foundation","description":"Rust bindings to Apple's Foundation framework, providing access to NSString, NSArray, NSDictionary, and other core Objective-C types.","status":"active","version":"0.3.2","language":"rust","source_language":null,"source_url":"https://github.com/madsmtm/objc2","tags":["apple","foundation","objective-c","ffi","macos","ios"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nobjc2-foundation = \"0.3.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add objc2-foundation","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"NSString","correct":"use objc2_foundation::NSString;"}],"quickstart":{"code":"use objc2_foundation::NSString;\n\nfn main() {\n    let string = NSString::from_str(\"Hello, world!\");\n    println!(\"{}\", string);\n}","lang":"rust","description":"Creates an NSString from a Rust string and prints it."},"warnings":[{"fix":"Use cfg(target_os = \"macos\") or cfg(target_os = \"ios\") to conditionally compile.","message":"Requires macOS or iOS target and the objc2 runtime; not available on other platforms.","severity":"gotcha","affected_versions":">=0.3.0"}],"env_vars":null,"search_vec":"'access':11 'appl':6,23 'bind':4 'c':21,27 'core':18 'ffi':28 'foundat':2,8,24 'framework':9 'io':30 'maco':29 'nsarray':14 'nsdictionari':15 'nsstring':13 'objc2':1 'object':20,26 'objective-c':19,25 'provid':10 'rust':3 'type':22","created_at":"2026-06-16T16:20:02.557102+00:00","updated_at":"2026-06-16T16:20:02.557102+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/madsmtm/objc2","github":"https://github.com/madsmtm/objc2","docs":"https://docs.rs/objc2-foundation/","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}}