{"id":13822550,"url":"https://github.com/jswrenn/typic","last_synced_at":"2025-05-16T17:31:02.337Z","repository":{"id":57670925,"uuid":"230658368","full_name":"jswrenn/typic","owner":"jswrenn","description":"Type-safe transmutations between layout-compatible types.","archived":true,"fork":false,"pushed_at":"2020-08-11T20:39:11.000Z","size":204,"stargazers_count":122,"open_issues_count":7,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-13T13:02:43.244Z","etag":null,"topics":["rust","safe-abstraction","transmute","zero-cost-abstraction"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/typic","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/jswrenn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-28T19:50:01.000Z","updated_at":"2025-03-03T14:31:38.000Z","dependencies_parsed_at":"2022-09-26T20:41:19.215Z","dependency_job_id":null,"html_url":"https://github.com/jswrenn/typic","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jswrenn%2Ftypic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jswrenn%2Ftypic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jswrenn%2Ftypic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jswrenn%2Ftypic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jswrenn","download_url":"https://codeload.github.com/jswrenn/typic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576421,"owners_count":22094366,"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":["rust","safe-abstraction","transmute","zero-cost-abstraction"],"created_at":"2024-08-04T08:02:05.677Z","updated_at":"2025-05-16T17:31:02.020Z","avatar_url":"https://github.com/jswrenn.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"**ANNOUNCEMENT:** The primary purpose of Typic was to prototype zero-compromise designs for a safe transmute language feature. [Read the resulting RFC draft here](https://github.com/rust-lang/project-safe-transmute/pull/5)!\n\n---\n\n# Typic\nTypic helps you transmute fearlessly. It worries about the subtleties of\n***[soundness]*** and ***[safety]*** so you don't have to!\n\n[![Documentation](https://docs.rs/typic/badge.svg)](https://docs.rs/typic/)\n[![Crates.io](https://img.shields.io/crates/v/typic.svg)](https://crates.io/crates/typic/0.1.0)\n\nJust import it and replace your `#[repr(...)]` attributes with `#[typic::repr(...)]`:\n```rust\n// Import it!\nuse typic::{self, TransmuteInto};\n\n// Update your attributes!\n#[typic::repr(C)]\npub struct Foo(pub u8, pub u16);\n\n// Transmute fearlessly!\nlet _ : Foo = u32::default().transmute_into(); // Alchemy achieved!\nlet _ : u32 = Foo::default().transmute_into(); // Compiler Error!\n```\n\n[soundness]: https://docs.rs/typic/latest/typic/transmute/unsafe_transmutation\n[safety]: https://docs.rs/typic/latest/typic/safe/\n\n#### License\n\n\u003csup\u003e\nLicensed under either of \u003ca href=\"LICENSE-APACHE\"\u003eApache License, Version\n2.0\u003c/a\u003e or \u003ca href=\"LICENSE-MIT\"\u003eMIT license\u003c/a\u003e at your option.\n\u003c/sup\u003e\n\n\u003cbr\u003e\n\n\u003csub\u003e\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in this crate by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n\u003c/sub\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjswrenn%2Ftypic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjswrenn%2Ftypic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjswrenn%2Ftypic/lists"}