{"id":20796729,"url":"https://github.com/synphonyte/codee","last_synced_at":"2025-11-20T01:00:21.775Z","repository":{"id":247153599,"uuid":"825149873","full_name":"Synphonyte/codee","owner":"Synphonyte","description":"Easy and flexible way of encoding and decoding data into either strings or bytes.","archived":false,"fork":false,"pushed_at":"2025-10-08T21:33:58.000Z","size":53,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-10T13:15:54.381Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Synphonyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null},"funding":{"github":["gbj","Synphonyte"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-07-06T23:45:29.000Z","updated_at":"2025-10-08T21:34:01.000Z","dependencies_parsed_at":"2024-08-13T20:29:05.659Z","dependency_job_id":"e67b39fb-9d7e-4714-87fc-aa61f67811d7","html_url":"https://github.com/Synphonyte/codee","commit_stats":null,"previous_names":["synphonyte/codee"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Synphonyte/codee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Synphonyte%2Fcodee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Synphonyte%2Fcodee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Synphonyte%2Fcodee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Synphonyte%2Fcodee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Synphonyte","download_url":"https://codeload.github.com/Synphonyte/codee/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Synphonyte%2Fcodee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285342661,"owners_count":27155482,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-17T16:28:50.330Z","updated_at":"2025-11-20T01:00:21.183Z","avatar_url":"https://github.com/Synphonyte.png","language":"Rust","funding_links":["https://github.com/sponsors/gbj","https://github.com/sponsors/Synphonyte"],"categories":[],"sub_categories":[],"readme":"# Codee\n\n[![Crates.io](https://img.shields.io/crates/v/codee.svg)](https://crates.io/crates/codee)\n[![Docs](https://docs.rs/codee/badge.svg)](https://docs.rs/codee/)\n[![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)](https://github.com/synphonyte/codee#license)\n[![Build Status](https://github.com/synphonyte/codee/actions/workflows/ci.yml/badge.svg)](https://github.com/synphonyte/codee/actions/workflows/ci.yml)\n\nEasy and flexible way of encoding and decoding data into either strings or bytes.\n\nThis crate provides generic traits for `Encoder`s and `Decoder`s as well as several\nimplementations for commonly used (de)serializer crates.\n    \nThis makes it easily possible to abstract away the serialization and deserialization independent\nof the concrete crate used. You can write a function like this:\n\n```rust\nuse codee::{CodecError, Decoder, Encoder};\n\nfn store_value\u003cT, Codec\u003e(value: T) -\u003e Result\u003c(), CodecError\u003c\u003cCodec as Encoder\u003cT\u003e\u003e::Error, \u003cCodec as Decoder\u003cT\u003e\u003e::Error\u003e\u003e\nwhere\n    Codec: Encoder\u003cT, Encoded = String\u003e + Decoder\u003cT, Encoded = str\u003e,\n{\n    let encoded = Codec::encode(\u0026value).map_err(CodecError::Encode)?;\n    let decoded = Codec::decode(\u0026encoded).map_err(CodecError::Decode)?;\n\n    Ok(())\n}\n\n// Then we can use it like this:\n\nuse codee::string::{JsonSerdeCodec, FromToStringCodec};\n\n#[derive(serde::Serialize, serde::Deserialize)]\nstruct MyStruct {\n    field: usize,\n}\n\nstore_value::\u003ci32, FromToStringCodec\u003e(42);\nstore_value::\u003cMyStruct, JsonSerdeCodec\u003e(MyStruct { field: 42 });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynphonyte%2Fcodee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynphonyte%2Fcodee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynphonyte%2Fcodee/lists"}