{"id":31897306,"url":"https://github.com/johnnynotsolucky/hashfn","last_synced_at":"2025-10-13T11:19:24.382Z","repository":{"id":57678732,"uuid":"491262537","full_name":"johnnynotsolucky/hashfn","owner":"johnnynotsolucky","description":"A procedural macro to generate a hash representation of a function as a string slice","archived":false,"fork":false,"pushed_at":"2022-05-16T07:30:30.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T23:23:19.541Z","etag":null,"topics":["proc-macro","proc-macro-attributes","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnnynotsolucky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-11T20:27:35.000Z","updated_at":"2023-04-21T14:32:05.000Z","dependencies_parsed_at":"2022-09-14T09:21:19.823Z","dependency_job_id":null,"html_url":"https://github.com/johnnynotsolucky/hashfn","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/johnnynotsolucky/hashfn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnynotsolucky%2Fhashfn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnynotsolucky%2Fhashfn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnynotsolucky%2Fhashfn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnynotsolucky%2Fhashfn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnynotsolucky","download_url":"https://codeload.github.com/johnnynotsolucky/hashfn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnynotsolucky%2Fhashfn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014767,"owners_count":26085593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proc-macro","proc-macro-attributes","rust"],"created_at":"2025-10-13T11:19:21.409Z","updated_at":"2025-10-13T11:19:24.365Z","avatar_url":"https://github.com/johnnynotsolucky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hashfn\n\nA procedural macro to generate a hash representation of a function as a string slice.\n\nThe hash is generated as a const with the same visibility as the function the macro is applied\nto.\n\n## Example:\n\n```\nuse hashfn::hashfn;\n\n#[hashfn(DO_SOMETHING)]\npub(crate) fn do_something() {}\n\n// Will expand to\n// pub(crate) const DO_SOMETHING: \u0026str = \"\u003chash\u003e\";\n// pub(crate) fn do_something() {}\n```\n\n`hashfn` will generate the name of the constant if it is omitted:\n\n```\nuse hashfn::hashfn;\n\n#[hashfn]\npub(crate) fn do_something() {}\n\n// Will expand to\n// pub(crate) const DO_SOMETHING_HASH: \u0026str = \"\u003chash\u003e\";\n// pub(crate) fn do_something() {}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnynotsolucky%2Fhashfn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnynotsolucky%2Fhashfn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnynotsolucky%2Fhashfn/lists"}