{"id":35124129,"url":"https://github.com/nekitdev/trait-aliases","last_synced_at":"2026-01-13T22:01:13.413Z","repository":{"id":330331034,"uuid":"1122463892","full_name":"nekitdev/trait-aliases","owner":"nekitdev","description":"Trait aliases.","archived":false,"fork":false,"pushed_at":"2025-12-27T19:23:01.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-30T02:32:00.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/trait-aliases","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nekitdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["nekitdev"],"custom":"https://nekit.dev/funding"}},"created_at":"2025-12-24T19:35:47.000Z","updated_at":"2025-12-27T19:22:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nekitdev/trait-aliases","commit_stats":null,"previous_names":["nekitdev/trait-aliases"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nekitdev/trait-aliases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Ftrait-aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Ftrait-aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Ftrait-aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Ftrait-aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekitdev","download_url":"https://codeload.github.com/nekitdev/trait-aliases/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekitdev%2Ftrait-aliases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-28T01:35:01.074Z","updated_at":"2026-01-13T22:01:13.407Z","avatar_url":"https://github.com/nekitdev.png","language":"Rust","funding_links":["https://github.com/sponsors/nekitdev","https://nekit.dev/funding"],"categories":[],"sub_categories":[],"readme":"# `trait-aliases`\n\n[![License][License Badge]][License]\n[![Version][Version Badge]][Crate]\n[![Downloads][Downloads Badge]][Crate]\n[![Documentation][Documentation Badge]][Documentation]\n[![Test][Test Badge]][Actions]\n\n\u003e *Trait aliases.*\n\n## Installation\n\n### `cargo`\n\nYou can add `trait-aliases` as a dependency with the following command:\n\n```console\n$ cargo add trait-aliases\n```\n\nOr by directly specifying it in the configuration like so:\n\n```toml\n[dependencies]\ntrait-aliases = \"0.2.0\"\n```\n\nAlternatively, you can add it directly from the source:\n\n```toml\n[dependencies.trait-aliases]\ngit = \"https://github.com/nekitdev/trait-aliases.git\"\n```\n\n## Example\n\n\u003e Ever felt tired of writing `T: Send + Sync + 'static` over and over when working with `async`\n\u003e in multi-threaded scenarios?\n\nSimply define an alias without blanket implementation boilerplate!\n\n```rust\nuse trait_aliases::trait_aliases;\n\ntrait_aliases! {\n    /// Working in multi-threaded `async` contexts often requires these.\n    pub trait SSS = Send + Sync + 'static;\n}\n```\n\nThis crate will generate the `SSS` trait with the provided bounds, and implement it for any type\nsatisfying them:\n\n```rust\n/// Working in multi-threaded `async` contexts often requires these.\npub trait SSS: Send + Sync + 'static {}\n\n/// Blanket implementation of [`SSS`] for all types satisfying its bounds.\nimpl\u003c__T\u003e SSS for __T where __T: Send + Sync + 'static + ?Sized {}\n```\n\n## Note\n\nThe `__T` identifier is essential to correct code generation, therefore *any* occurrences\nof the reserved identifier will result in compilation errors:\n\n```rust\nuse trait_aliases::trait_aliases;\n\ntrait_aliases! {\n    trait __T = Sized;\n}\n```\n\nFails with the following error:\n\n```text\nidentifier `__T` is reserved for blanket implementations\n```\n\n## Documentation\n\nYou can find the documentation [here][Documentation].\n\n## Support\n\nIf you need support with the library, you can send an [email][Email].\n\n## Changelog\n\nYou can find the changelog [here][Changelog].\n\n## Security Policy\n\nYou can find the Security Policy of `trait-aliases` [here][Security].\n\n## Contributing\n\nIf you are interested in contributing to `trait-aliases`, make sure to take a look at the\n[Contributing Guide][Contributing Guide], as well as the [Code of Conduct][Code of Conduct].\n\n## License\n\n`trait-aliases` is licensed under the MIT License terms. See [License][License] for details.\n\n[Email]: mailto:support@nekit.dev\n\n[Discord]: https://nekit.dev/chat\n\n[Actions]: https://github.com/nekitdev/trait-aliases/actions\n\n[Changelog]: https://github.com/nekitdev/trait-aliases/blob/main/CHANGELOG.md\n[Code of Conduct]: https://github.com/nekitdev/trait-aliases/blob/main/CODE_OF_CONDUCT.md\n[Contributing Guide]: https://github.com/nekitdev/trait-aliases/blob/main/CONTRIBUTING.md\n[Security]: https://github.com/nekitdev/trait-aliases/blob/main/SECURITY.md\n\n[License]: https://github.com/nekitdev/trait-aliases/blob/main/LICENSE\n\n[Crate]: https://crates.io/crates/trait-aliases\n[Documentation]: https://docs.rs/trait-aliases\n\n[License Badge]: https://img.shields.io/crates/l/trait-aliases\n[Version Badge]: https://img.shields.io/crates/v/trait-aliases\n[Downloads Badge]: https://img.shields.io/crates/dr/trait-aliases\n[Documentation Badge]: https://img.shields.io/docsrs/trait-aliases\n[Test Badge]: https://github.com/nekitdev/trait-aliases/workflows/test/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekitdev%2Ftrait-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekitdev%2Ftrait-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekitdev%2Ftrait-aliases/lists"}