{"id":67451,"library":"ghost","title":"ghost","description":"Define your own PhantomData-like types with custom behavior.","status":"active","version":"0.1.21","language":"rust","source_language":null,"source_url":"https://github.com/dtolnay/ghost","tags":["macro","phantom","type-system"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nghost = \"0.1.21\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add ghost","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"phantom","correct":"use ghost::phantom;"}],"quickstart":{"code":"use ghost::phantom;\n\n#[phantom]\nstruct MyPhantom<T>;\n\nfn main() {\n    let _p: MyPhantom<u32> = MyPhantom;\n    println!(\"Phantom type created\");\n}","lang":"rust","description":"Defines a custom phantom type using the ghost macro."},"warnings":[],"env_vars":null,"search_vec":"'behavior':11 'custom':10 'defin':2 'ghost':1 'like':7 'macro':12 'phantom':13 'phantomdata':6 'phantomdata-lik':5 'system':16 'type':8,15 'type-system':14","created_at":"2026-06-17T17:37:23.623769+00:00","updated_at":"2026-06-17T17:37:23.623769+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/dtolnay/ghost","github":"https://github.com/dtolnay/ghost","docs":"https://docs.rs/ghost/","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}}