{"id":16021201,"url":"https://github.com/ewpratten/thinwrap","last_synced_at":"2025-04-05T03:42:46.321Z","repository":{"id":115029700,"uuid":"367499960","full_name":"ewpratten/thinwrap","owner":"ewpratten","description":"Deref struct macros for Rust","archived":false,"fork":false,"pushed_at":"2021-05-15T12:57:31.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T11:51:15.107Z","etag":null,"topics":["rust","rust-library","rust-macros"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/thinwrap","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewpratten.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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},"funding":{"github":"ewpratten"}},"created_at":"2021-05-14T23:20:48.000Z","updated_at":"2021-05-15T12:59:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"18c247e9-2c2f-4017-bdc7-547922ca40f4","html_url":"https://github.com/ewpratten/thinwrap","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"ea00dbedd733115ff43bd323076fc01f3234ff2d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2Fthinwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2Fthinwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2Fthinwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewpratten%2Fthinwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewpratten","download_url":"https://codeload.github.com/ewpratten/thinwrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284915,"owners_count":20913691,"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":["rust","rust-library","rust-macros"],"created_at":"2024-10-08T18:02:04.436Z","updated_at":"2025-04-05T03:42:46.305Z","avatar_url":"https://github.com/ewpratten.png","language":"Rust","funding_links":["https://github.com/sponsors/ewpratten"],"categories":[],"sub_categories":[],"readme":"# ThinWrap\n\n[![Crates.io](https://img.shields.io/crates/v/thinwrap)](https://crates.io/crates/thinwrap) ![Build](https://github.com/Ewpratten/thinwrap/workflows/Build/badge.svg)\n\nThinWrap is a very small Rust library that provides a macro (`thin_wrap!`) to wrap any struct in an outer struct, and generate its `Deref` and `DerefMut` traits automatically.\n\n## Example\n\n**With ThinWrap:**\n\n```rust\npub struct Inner;\n\nthin_wrap!(pub, Outer, Inner);\n```\n\n**Without ThinWrap:**\n\n```rust\npub struct Inner;\n\npub struct Outer(Inner);\n\nimpl Deref for Outer {\n    type Target = Inner;\n\n    fn deref(\u0026self) -\u003e \u0026Self::Target {\n        \u0026self.0\n    }\n}\n\nimpl DerefMut for Outer {\n    fn deref_mut(\u0026mut self) -\u003e \u0026mut Self::Target {\n        \u0026mut self.0\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewpratten%2Fthinwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewpratten%2Fthinwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewpratten%2Fthinwrap/lists"}