{"id":13502951,"url":"https://github.com/not-fl3/nanoserde","last_synced_at":"2025-05-14T01:03:16.767Z","repository":{"id":38376799,"uuid":"273762076","full_name":"not-fl3/nanoserde","owner":"not-fl3","description":"Serialisation library with zero dependencies","archived":false,"fork":false,"pushed_at":"2024-10-10T02:48:10.000Z","size":244,"stargazers_count":705,"open_issues_count":14,"forks_count":40,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-29T15:49:05.473Z","etag":null,"topics":[],"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/not-fl3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"fedorgames"}},"created_at":"2020-06-20T18:21:22.000Z","updated_at":"2024-10-28T17:03:04.000Z","dependencies_parsed_at":"2023-12-16T18:25:26.582Z","dependency_job_id":"151a7f8d-4897-480e-9fd3-4da880362dbd","html_url":"https://github.com/not-fl3/nanoserde","commit_stats":{"total_commits":106,"total_committers":18,"mean_commits":5.888888888888889,"dds":"0.41509433962264153","last_synced_commit":"efbce04bf00a2f303651660847efde49407a7e6d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/not-fl3%2Fnanoserde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/not-fl3%2Fnanoserde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/not-fl3%2Fnanoserde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/not-fl3%2Fnanoserde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/not-fl3","download_url":"https://codeload.github.com/not-fl3/nanoserde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248230082,"owners_count":21069051,"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":[],"created_at":"2024-07-31T22:02:31.528Z","updated_at":"2025-04-10T13:56:58.574Z","avatar_url":"https://github.com/not-fl3.png","language":"Rust","funding_links":["https://patreon.com/fedorgames"],"categories":["Rust","Libraries","Members"],"sub_categories":[],"readme":"# nanoserde\n\n[![Github Actions](https://github.com/not-fl3/nanoserde/workflows/Cross-compile/badge.svg)](https://github.com/not-fl3/nanoserde/actions?query=workflow%3A)\n[![Crates.io version](https://img.shields.io/crates/v/nanoserde.svg)](https://crates.io/crates/nanoserde)\n[![Documentation](https://docs.rs/nanoserde/badge.svg)](https://docs.rs/nanoserde)\n[![Discord chat](https://img.shields.io/discord/710177966440579103.svg?label=discord%20chat)](https://discord.gg/WfEp6ut)\n\nFork of https://crates.io/crates/makepad-tinyserde with all the dependencies removed.\nNo more syn, proc_macro2 or quote in the build tree!\n\n```\n\u003e cargo tree\nnanoserde v0.2.0 (/../nanoserde)\n└── nanoserde-derive v0.2.0 (/../nanoserde/derive)\n```\n\n## Example:\n\n```rust\nuse nanoserde::{DeJson, SerJson};\n\n#[derive(Clone, Debug, Default, DeJson, SerJson)]\npub struct Property {\n    pub name: String,\n    #[nserde(default)]\n    pub value: String,\n    #[nserde(rename = \"type\")]\n    pub ty: String,\n}\n```\n\nFor more examples take a look at [tests](/tests)\n\n## Features support matrix:\n\n| Feature                                                   | json   | bin   | ron    | toml  |\n| ---------------------------------------------------       | ------ | ----- | ------ | ----- |\n| serialization                                             | yes    | yes   | yes    | no    |\n| deserialization                                           | yes    | yes   | yes    | no    |\n| container: Struct                                         | yes    | yes   | yes    | no    |\n| container: Tuple Struct                                   | no     | yes   | yes    | no    |\n| container: Enum                                           | yes    | yes   | yes    | no    |\n| field: `std::collections::HashMap`                        | yes    | yes   | yes    | no    |\n| field: `std::vec::Vec`                                    | yes    | yes   | yes    | no    |\n| field: `Option`                                           | yes    | yes   | yes    | no    |\n| field: `i*`/`f*`/`String`/`T: De*/Ser*`                   | yes    | yes   | yes    | no    |\n| field attribute: `#[nserde(default)]`                     | yes    | no    | yes    | no    |\n| field attribute: `#[nserde(rename = \"\")]`                 | yes    | yes   | yes    | no    |\n| field attribute: `#[nserde(proxy = \"\")]`                  | no     | yes   | no     | no    |\n| field attribute: `#[nserde(serialize_none_as_null)]`      | yes    | no    | no     | no    |\n| container attribute: `#[nserde(default)]`                 | yes    | no    | yes    | no    |\n| container attribute: `#[nserde(default = \"\")]`            | yes    | no    | yes    | no    |\n| container attribute: `#[nserde(default_with = \"\")]`       | yes    | no    | yes    | no    |\n| container attribute: `#[nserde(skip)]` (implies `default`)| yes    | no    | yes    | no    |\n| container attribute: `#[nserde(serialize_none_as_null)]`  | yes    | no    | no     | no    |\n| container attribute: `#[nserde(rename = \"\")]`             | yes    | yes   | yes    | no    |\n| container attribute: `#[nserde(proxy = \"\")]`              | yes    | yes   | no     | no    |\n| container attribute: `#[nserde(transparent)]`             | yes    | no    | no     | no    |\n| container attribute: `#[nserde(crate = \"\")]`              | yes    | yes   | yes    | no    |\n\n## Crate features:\n\nAll features are enabled by default. To enable only specific formats, import nanoserde using\n```toml\nnanoserde = { version = \"*\", default-features = false, features = [\"std\", \"{format feature name}\"] }\n```\nin your `Cargo.toml` and add one or more of the following crate features:\n\n| Format    | Feature Name   |\n| ----------| -------------- |\n| Binary    | `binary`       |\n| JSON      | `json`         |\n| RON       | `ron`          |\n| TOML      | `toml`         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-fl3%2Fnanoserde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnot-fl3%2Fnanoserde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-fl3%2Fnanoserde/lists"}