{"id":70484,"library":"bevy-ptr","title":"Bevy Ptr","description":"Utilities for working with untyped pointers in a safer way within the Bevy engine.","status":"active","version":"0.18.1","language":"rust","source_language":null,"source_url":"https://github.com/bevyengine/bevy","tags":["bevy","pointer","unsafe","utilities"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nbevy_ptr = \"0.18.1\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add bevy_ptr","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Ptr","correct":"use bevy_ptr::Ptr;"}],"quickstart":{"code":"use bevy_ptr::Ptr;\n\nfn main() {\n    let mut data = 42u32;\n    let ptr = Ptr::from(&mut data);\n    unsafe { *ptr.as_mut::<u32>() = 100; }\n    println!(\"{}\", data);\n}","lang":"rust","description":"Create and use a typed pointer from an untyped one"},"warnings":[{"fix":"Always ensure correct alignment and lifetime when using Ptr.","message":"Unsafe operations require careful handling; misuse can cause undefined behavior.","severity":"gotcha","affected_versions":">=0.18.0"}],"env_vars":null,"search_vec":"'bevi':1,15,17 'engin':16 'pointer':8,18 'ptr':2 'safer':11 'unsaf':19 'untyp':7 'util':3,20 'way':12 'within':13 'work':5","created_at":"2026-06-17T18:14:51.184240+00:00","updated_at":"2026-06-17T18:14:51.184240+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://bevy.org","github":"https://github.com/bevyengine/bevy","docs":"https://docs.rs/bevy_ptr/","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}}