{"id":58306,"library":"function-name","title":"Function Name","description":"A procedural macro that expands to the name of the annotated function at compile time.","status":"active","version":"0.3.0","language":"rust","source_language":null,"source_url":"https://github.com/danielhenrymantilla/rust-function_name","tags":["macro","reflection","debugging"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nfunction_name = \"0.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add function_name","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"function_name","correct":"use function_name::function_name;"}],"quickstart":{"code":"use function_name::function_name;\n\n#[function_name]\nfn my_function() {\n    let name = function_name!();\n    println!(\"Function name: {}\", name);\n}\n\nfn main() {\n    my_function();\n}","lang":"rust","description":"Prints the name of the current function."},"warnings":[],"env_vars":null,"search_vec":"'annot':13 'compil':16 'debug':20 'expand':7 'function':1,14 'macro':5,18 'name':2,10 'procedur':4 'reflect':19 'time':17","created_at":"2026-06-16T16:18:53.381974+00:00","updated_at":"2026-06-16T16:18:53.381974+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://crates.io/crates/function_name","github":"https://github.com/danielhenrymantilla/rust-function_name","docs":"https://docs.rs/function_name/","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-16","next_check":"2026-12-13","install_tag":null}}