{"id":18938902,"url":"https://github.com/simd-lite/simd-json-derive","last_synced_at":"2025-04-13T05:08:58.731Z","repository":{"id":45956407,"uuid":"256025250","full_name":"simd-lite/simd-json-derive","owner":"simd-lite","description":"high performance Serialize and Deserialize derives","archived":false,"fork":false,"pushed_at":"2024-10-24T09:43:14.000Z","size":210,"stargazers_count":32,"open_issues_count":7,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-25T06:59:00.192Z","etag":null,"topics":["hacktoberfest"],"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/simd-lite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2020-04-15T20:10:31.000Z","updated_at":"2024-10-24T09:43:17.000Z","dependencies_parsed_at":"2023-09-23T13:38:58.271Z","dependency_job_id":"35774b5d-92e4-460d-98c6-3a91efdec8e6","html_url":"https://github.com/simd-lite/simd-json-derive","commit_stats":{"total_commits":103,"total_committers":5,"mean_commits":20.6,"dds":0.2524271844660194,"last_synced_commit":"a6b2f52c103bccc75592768027073731ee1a69d8"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simd-lite%2Fsimd-json-derive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simd-lite%2Fsimd-json-derive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simd-lite%2Fsimd-json-derive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simd-lite%2Fsimd-json-derive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simd-lite","download_url":"https://codeload.github.com/simd-lite/simd-json-derive/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"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":["hacktoberfest"],"created_at":"2024-11-08T12:15:44.996Z","updated_at":"2025-04-13T05:08:58.712Z","avatar_url":"https://github.com/simd-lite.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simd-json-derive\n\n[![Latest version](https://img.shields.io/crates/v/simd-json-derive.svg)](https://crates.io/crates/simd-json-derive)\n[![documentation](https://img.shields.io/docsrs/simd-json-derive)](https://docs.rs/simd-json-derive)\n![License](https://img.shields.io/crates/l/simd-json-derive.svg)\n\n\nDerives for high performance JSON serialisation and deserialisation.\n\n## Usage\n\n```rust\n\n#[derive(Serialize, Deserialize, Debug)]\n#[simd_json(deny_unknown_fields, rename_all = \"camelCase\")]\nstruct MyStruct {\n    first_field: String,\n    #[simd_json(rename = \"foo\")]\n    second_field: Option\u003cusize\u003e\n}\n\nfn main -\u003e Result\u003c(), simd_json::Error\u003e {\n    let my_struct = MyStruct {\n        first_field: \"i am first\".to_string(),\n        second_field: None\n    }\n    println!(\"Before: {my_struct:?}\");\n    let mut json_string = my_struct.json_string()?;\n    let deserialized = MyStruct::from_str(json_string.as_mut_str())?;\n    println!(\"After: {deserialized:?}\");\n}\n```\n\n## Supported Attributes\n\nAttributes are supported for both `#[simd_json(...)]` and for compatibilty also for `#[serde(...)]` and follow the same naming conventions as serde.\n\nFor fields:\n\n* `rename = \"new_name\"` - renames a field\n\nFor structs:\n\n* `rename_all = \"camelCase\"` - renames all (not otherwise renamed) based on the rule, `camelCase` is currently supported\n* `deny_unknown_fields` - Errors if unknown fields are encountered\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimd-lite%2Fsimd-json-derive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimd-lite%2Fsimd-json-derive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimd-lite%2Fsimd-json-derive/lists"}