{"id":28384387,"url":"https://github.com/polyphony-chat/ser_der","last_synced_at":"2025-06-25T23:31:06.076Z","repository":{"id":238300240,"uuid":"796251988","full_name":"polyphony-chat/ser_der","owner":"polyphony-chat","description":"Newtypes for the der crate to allow for [serde](https://serde.rs) de-/serialization.","archived":true,"fork":false,"pushed_at":"2024-05-05T15:05:49.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T09:11:19.639Z","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":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polyphony-chat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-05-05T12:01:52.000Z","updated_at":"2024-06-05T19:58:26.000Z","dependencies_parsed_at":"2024-05-05T14:45:21.300Z","dependency_job_id":null,"html_url":"https://github.com/polyphony-chat/ser_der","commit_stats":null,"previous_names":["polyphony-chat/ser_der"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polyphony-chat/ser_der","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fser_der","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fser_der/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fser_der/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fser_der/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polyphony-chat","download_url":"https://codeload.github.com/polyphony-chat/ser_der/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polyphony-chat%2Fser_der/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261972572,"owners_count":23238537,"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":"2025-05-30T08:30:21.281Z","updated_at":"2025-06-25T23:31:06.068Z","avatar_url":"https://github.com/polyphony-chat.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ser_der\n\nNewtypes for the der crate to allow for [serde](https://serde.rs) de-/serialization.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nser_der = { version = \"0\", features = [\"alloc\"] } # Features should match the ones of the der crate\nder = { version = \"0\", features = [\"alloc\"] } \nserde = { version = \"1\", features = [\"derive\"] }\n```\n\nYou can then use the newtypes offered by this crate to de-/serialize DER-encoded data structures using serde.\n\n```rust\n#[derive(serde::Serialize, serde::Deserialize)]\nstruct MyStruct {\n    #[serde(with = \"ser_der::asn1::ia5_string\")]\n    bits: ser_der::asn1::IA5String,\n}\n```\n\nAll newtypes implement `Deref`, `DerefMut`, `From\u003c[Newtype]\u003e for [Type]` and `From\u003c[Type]\u003e for [Newtype]` to the underlying `der` type.\n\n## Types covered\n\n- [x] IA5String\n- [ ] DateTime\n- [ ] Document\n- [ ] Length\n- [ ] Any\n- [ ] BitString\n- [ ] GeneralizedTime\n- [ ] Header\n- [ ] Int\n- [ ] Length\n- [ ] Null\n- [ ] ObjectIdentifier\n- [ ] OctetString\n- [ ] PrintableString\n- [ ] SequenceOf\n- [ ] SetOf\n- [ ] Tag\n- [ ] TeletexString\n- [ ] Uint\n- [ ] UtcTime\n\n## Upstreaming to `der`\n\nThis crate is a temporary solution until the `der` crate supports serde de-/serialization. The plan is to upstream the serde support to the [`der` crate](https://github.com/RustCrypto/formats/tree/master/der).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyphony-chat%2Fser_der","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolyphony-chat%2Fser_der","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolyphony-chat%2Fser_der/lists"}