{"id":36236672,"url":"https://github.com/zoon-format/zoon-rust","last_synced_at":"2026-01-11T06:00:59.939Z","repository":{"id":331226668,"uuid":"1124338595","full_name":"zoon-format/zoon-rust","owner":"zoon-format","description":null,"archived":false,"fork":false,"pushed_at":"2025-12-29T05:09:47.000Z","size":30377,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-04T16:56:39.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zoon-format.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-28T20:50:11.000Z","updated_at":"2025-12-29T05:09:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zoon-format/zoon-rust","commit_stats":null,"previous_names":["zoon-format/zoon-rust"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zoon-format/zoon-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoon-format","download_url":"https://codeload.github.com/zoon-format/zoon-rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28293188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-11T06:00:59.446Z","updated_at":"2026-01-11T06:00:59.931Z","avatar_url":"https://github.com/zoon-format.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zoon-rust\n\nA Rust implementation of [ZOON (Zero Overhead Object Notation)](https://github.com/zoon-format/zoon/blob/main/SPEC.md) - the most token-efficient data format for LLMs.\n\n[![Crates.io](https://img.shields.io/crates/v/zoon-format)](https://crates.io/crates/zoon-format)\n[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)\n\n## Installation\n\nAdd to your `Cargo.toml`:\n\n```toml\n[dependencies]\nzoon-format = \"1.0\"\n```\n\n## Usage\n\n### Encoding\n\n```rust\nuse zoon::encode;\nuse serde::Serialize;\n\n#[derive(Serialize)]\nstruct User {\n    id: i32,\n    name: String,\n    role: String,\n    active: bool,\n}\n\nfn main() {\n    let users = vec![\n        User { id: 1, name: \"Alice\".into(), role: \"Admin\".into(), active: true },\n        User { id: 2, name: \"Bob\".into(), role: \"User\".into(), active: false },\n    ];\n\n    let encoded = zoon::encode(\u0026users).unwrap();\n    println!(\"{}\", encoded);\n    // # id:i name:s role=Admin|User active:b\n    // Alice Admin 1\n    // Bob User 0\n}\n```\n\n### Decoding\n\n```rust\nuse zoon::decode;\nuse serde::Deserialize;\n\n#[derive(Deserialize, Debug)]\nstruct User {\n    id: i32,\n    name: String,\n    role: String,\n    active: bool,\n}\n\nfn main() {\n    let input = \"# id:i name:s role:s active:b\\n1 Alice Admin 1\\n2 Bob User 0\";\n    let users: Vec\u003cUser\u003e = zoon::decode(input).unwrap();\n    println!(\"{:?}\", users);\n}\n```\n\n## API\n\n| Function                                                | Description                           |\n| ------------------------------------------------------- | ------------------------------------- |\n| `encode\u003cT: Serialize\u003e(value: \u0026T) -\u003e Result\u003cString\u003e`     | Encode any serializable value to ZOON |\n| `decode\u003cT: DeserializeOwned\u003e(input: \u0026str) -\u003e Result\u003cT\u003e` | Decode ZOON into a value              |\n\n## Type Mapping\n\n| Rust Type          | ZOON Type | Header |\n| ------------------ | --------- | ------ |\n| `i32`, `i64`       | Integer   | `:i`   |\n| `bool`             | Boolean   | `:b`   |\n| `String`           | String    | `:s`   |\n| `Option\u003cT\u003e` (None) | Null      | `~`    |\n| Auto-increment ID  | Implicit  | `:i+`  |\n\n## License\n\nMIT License. © 2025-PRESENT Carsen Klock.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoon-format%2Fzoon-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoon-format%2Fzoon-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoon-format%2Fzoon-rust/lists"}