{"id":72108,"library":"delegate-attr","title":"Delegate Attr","description":"Attribute proc-macro to delegate method calls to a field.","status":"active","version":"0.3.0","language":"rust","source_language":null,"source_url":"https://github.com/upsuper/delegate-attr","tags":["macro","delegation","proc-macro"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ndelegate-attr = \"0.3.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add delegate-attr","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"delegate","correct":"use delegate_attr::delegate;"}],"quickstart":{"code":"use delegate_attr::delegate;\n\nstruct Inner;\nimpl Inner {\n    fn foo(&self) -> &str { \"hello\" }\n}\n\n#[delegate(self.inner)]\nstruct Outer {\n    inner: Inner,\n}\n\nfn main() {\n    let outer = Outer { inner: Inner };\n    assert_eq!(outer.foo(), \"hello\");\n}","lang":"rust","description":"Delegates the foo method from Inner to Outer using the delegate attribute."},"warnings":[],"env_vars":null,"search_vec":"'attr':2 'attribut':3 'call':10 'deleg':1,8,15 'field':13 'macro':6,14,18 'method':9 'proc':5,17 'proc-macro':4,16","created_at":"2026-06-17T18:35:17.630990+00:00","updated_at":"2026-06-17T18:35:17.630990+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/upsuper/delegate-attr","github":"https://github.com/upsuper/delegate-attr","docs":"https://docs.rs/delegate-attr/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}