{"id":16908259,"url":"https://github.com/jmg-duarte/pseudonym-rs","last_synced_at":"2026-03-07T10:32:42.633Z","repository":{"id":62443045,"uuid":"441719663","full_name":"jmg-duarte/pseudonym","owner":"jmg-duarte","description":"Declare aliases with ease!","archived":false,"fork":false,"pushed_at":"2023-08-03T15:05:29.000Z","size":51,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T11:51:58.206Z","etag":null,"topics":["deprecate","macros","proc-macro","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/pseudonym/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmg-duarte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-25T16:45:36.000Z","updated_at":"2023-08-03T14:14:26.000Z","dependencies_parsed_at":"2025-02-19T16:34:49.064Z","dependency_job_id":"dbca54f5-0636-4bff-97fb-f2c9f8d85a93","html_url":"https://github.com/jmg-duarte/pseudonym","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fpseudonym","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fpseudonym/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fpseudonym/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmg-duarte%2Fpseudonym/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmg-duarte","download_url":"https://codeload.github.com/jmg-duarte/pseudonym/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248433089,"owners_count":21102501,"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","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":["deprecate","macros","proc-macro","rust"],"created_at":"2024-10-13T18:50:47.695Z","updated_at":"2025-12-12T10:24:56.511Z","avatar_url":"https://github.com/jmg-duarte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pseudonym 🕵️\n\n\u003cimg alt=\"MSRV 1.56.0\" src=\"https://img.shields.io/badge/msrv-1.56.0-blue?style=flat-square\"\u003e\n\nDeclare aliases for Rust constructs with ease!\n\n```toml\n[dependencies]\npseudonym = \"0.2.2\"\n```\n\n## Usage\nIn the following examples the items to which the macro is attached to\nget generated as aliases using the passed identifier.\n\n### Functions\n\n```rust\nuse pseudonym::alias;\n\n#[alias(short_name)]\nfn very_long_function_name() {\n    // ...\n}\n\nfn main () {\n    short_name(); // use the alias!\n}\n```\n\n### Structures\n\n```rust\nuse pseudonym::alias;\n\n#[alias(StructAlias)]\nstruct S (i32);\n```\n\n### Traits\n\n```rust\nuse pseudonym::alias;\n\n#[alias(TraitAlias)]\ntrait T {}\n```\n\n### Implementations\n\n```rust\nuse pseudonym::alias;\n\n#[alias(StructAlias)]\nstruct S;\n\n#[alias(StructAlias)]\nimpl S {\n    fn new() -\u003e Self { Self }\n}\n```\n\n### Constants\n\n```rust\nuse pseudonym::alias;\n\n#[alias(ConstAlias)]\nconst foo: usize = 0;\n```\n\n### Deprecating Aliases\n\nSometimes, you'll need to create aliases to old functions which are deprecated.\n`pseudonym` allows you to deprecate aliases using the same syntax as `deprecated`.\n\n```rust\nuse pseudonym::alias;\n\n#[alias(\n    deprecated(\n        old_api_function,\n        since = \"0.1.0\",\n        note = \"This function has been deprecated in favor of `new_api_function`\"\n    )\n)]\nfn new_api_function() {\n    // ...\n}\n\nfn main () {\n    old_api_function(); // use the alias!\n}\n```\n\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this project by you, as defined in the Apache-2.0 license,\nshall be dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmg-duarte%2Fpseudonym-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmg-duarte%2Fpseudonym-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmg-duarte%2Fpseudonym-rs/lists"}