{"id":16168879,"url":"https://github.com/andrewgazelka/derive-build","last_synced_at":"2025-09-23T03:30:14.734Z","repository":{"id":152572710,"uuid":"626500640","full_name":"andrewgazelka/derive-build","owner":"andrewgazelka","description":"🦀 An opinionated builder macro in Rust","archived":false,"fork":false,"pushed_at":"2023-04-11T17:35:21.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T04:03:03.807Z","etag":null,"topics":["proc-macro","proc-macro-derive","rust"],"latest_commit_sha":null,"homepage":"","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/andrewgazelka.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":"2023-04-11T15:35:34.000Z","updated_at":"2023-04-11T15:53:57.000Z","dependencies_parsed_at":"2023-05-27T11:45:25.165Z","dependency_job_id":null,"html_url":"https://github.com/andrewgazelka/derive-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgazelka%2Fderive-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgazelka%2Fderive-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgazelka%2Fderive-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewgazelka%2Fderive-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewgazelka","download_url":"https://codeload.github.com/andrewgazelka/derive-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247607783,"owners_count":20965945,"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":["proc-macro","proc-macro-derive","rust"],"created_at":"2024-10-10T03:13:34.405Z","updated_at":"2025-09-23T03:30:09.681Z","avatar_url":"https://github.com/andrewgazelka.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# derive-build\n\n[![Crates.io](https://img.shields.io/crates/v/derive-build.svg?style=plastic)](http://crates.io/crates/derive-build)\n\nAn opinionated builder macro in Rust\n\n```rust\n#[derive(Default, Build, Eq, PartialEq, Debug)]\nstruct Request {\n    #[required]\n    url: String,\n\n    path: Option\u003cString\u003e,\n\n    messages: Vec\u003cString\u003e,\n}\n\nfn main() {\n    let request = Request::new(\"example.com\")\n        .path(\"tester\")\n        .message(\"hello\")\n        .message(\"goodbye\");\n\n    let expected = Request {\n        url: \"example.com\".to_string(),\n        path: Some(\"tester\".to_string()),\n        messages: vec![\"hello\".to_string(), \"goodbye\".to_string()],\n    };\n\n    assert_eq!(request, expected);\n}\n\n```\n\n## Features\n\n- [x] Required fields\n- [x] Optional fields\n- [x] Default values for optional fields\n- [ ] Default values for required fields (instead make option)\n- [x] Support for `Option\u003cT\u003e` fields\n- [x] Support for `Vec\u003cT\u003e` fields\n- [x] Support for `Cow\u003c'a, T\u003e` fields\n- [x] Support for references (`\u0026'a T`) fields\n- [x] Automatic `Into\u003cT\u003e` conversions\n- [x] Automatic singularization of field names\n- [x] Support for `HashMap\u003cK, V\u003e` fields\n- [x] Support for `HashSet\u003cT\u003e` fields\n- [x] Support for `BTreeMap\u003cK, V\u003e` fields\n- [x] Support for `BTreeSet\u003cT\u003e` fields\n- [x] Support for `Box\u003cT\u003e` fields\n- [x] Support for `Rc\u003cT\u003e` fields\n- [x] Support for `Arc\u003cT\u003e` fields\n- [x] Support for integer types","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewgazelka%2Fderive-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewgazelka%2Fderive-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewgazelka%2Fderive-build/lists"}