{"id":13595622,"url":"https://github.com/mcarton/rust-derivative","last_synced_at":"2025-05-15T01:06:44.007Z","repository":{"id":45134311,"uuid":"70254606","full_name":"mcarton/rust-derivative","owner":"mcarton","description":"A set of alternative `derive` attributes for Rust","archived":false,"fork":false,"pushed_at":"2024-05-29T05:02:20.000Z","size":2340,"stargazers_count":439,"open_issues_count":46,"forks_count":48,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-13T01:53:17.823Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcarton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","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":"2016-10-07T14:32:57.000Z","updated_at":"2025-05-06T03:56:42.000Z","dependencies_parsed_at":"2024-02-26T01:49:48.756Z","dependency_job_id":"79922c8b-7a4f-40c9-b53b-01dfc04c2f31","html_url":"https://github.com/mcarton/rust-derivative","commit_stats":{"total_commits":240,"total_committers":16,"mean_commits":15.0,"dds":0.4625,"last_synced_commit":"5179a968ca6d70792f62dfe6727ab8d5b8b5cf5e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcarton%2Frust-derivative","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcarton%2Frust-derivative/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcarton%2Frust-derivative/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcarton%2Frust-derivative/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcarton","download_url":"https://codeload.github.com/mcarton/rust-derivative/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254037070,"owners_count":22003732,"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"],"created_at":"2024-08-01T16:01:53.835Z","updated_at":"2025-05-15T01:06:38.980Z","avatar_url":"https://github.com/mcarton.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Derivative\n\n[![Crates.io](https://img.shields.io/crates/v/derivative.svg?maxAge=3600)](https://crates.io/crates/derivative)\n[![Crates.io](https://img.shields.io/crates/l/derivative.svg?maxAge=3600)](https://github.com/mcarton/rust-derivative#license)\n![Continuous integration](https://github.com/mcarton/rust-derivative/workflows/Continuous%20integration/badge.svg)\n\nThis crate provides a set of alternative customizable `#[derive]` attributes for Rust.\n\n## [Documentation][documentation]\n## Stability\n\nThis crate is stable and follows semver. It requires *rustc 1.34 or later* and changing the minimal rustc version will be considered a semver breaking change.\n\n## What it does\n\n```rust\n#[derive(Derivative)]\n#[derivative(Debug)]\nstruct Foo {\n    foo: u8,\n    #[derivative(Debug=\"ignore\")]\n    bar: u8,\n}\n\n// Prints `Foo { foo: 42 }`\nprintln!(\"{:?}\", Foo { foo: 42, bar: 1 });\n```\n\nCheck the [documentation] for more!\n\n## License\n\nLicensed under either of\n * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n   \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Acknowledgements\n\nThis is inspired from how [`serde`] wonderfully handles attributes.\nThis also takes some code and ideas from `serde` itself.\n\nSome tests are directly adapted from `rustc`'s tests.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\n[`serde`]: https://crates.io/crates/serde\n[documentation]: https://mcarton.github.io/rust-derivative/latest/index.html\n[rustc]: https://github.com/rust-lang/rust\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcarton%2Frust-derivative","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcarton%2Frust-derivative","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcarton%2Frust-derivative/lists"}