Registry / utility / function-name

function-name

JSON →
library0.3.0rscratesunverified

A procedural macro that expands to the name of the annotated function at compile time.

# Cargo.toml [dependencies] function_name = "0.3.0"
INSTALL
IMPORT
SIG · FUNCTION-NAME
F
function-name
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

function_name
✓ use function_name::function_name;

Prints the name of the current function.

use function_name::function_name; #[function_name] fn my_function() { let name = function_name!(); println!("Function name: {}", name); } fn main() { my_function(); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
function-name — cargo add function-name · libregistry