{"id":29435590,"url":"https://github.com/cffi-rs/cffi","last_synced_at":"2025-07-13T04:02:06.413Z","repository":{"id":52250915,"uuid":"197187467","full_name":"cffi-rs/cffi","owner":"cffi-rs","description":"Safe* C foreign function interface for Rust, using proc macros and marshaling types.","archived":false,"fork":false,"pushed_at":"2024-05-04T14:08:42.000Z","size":206,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T05:05:13.498Z","etag":null,"topics":["c","cthulhu","extern","ffi","marshal","rust"],"latest_commit_sha":null,"homepage":"","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/cffi-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-16T12:13:24.000Z","updated_at":"2024-09-27T02:42:33.000Z","dependencies_parsed_at":"2024-05-04T15:26:03.827Z","dependency_job_id":"623bcc66-e692-417d-9be6-46df0d824182","html_url":"https://github.com/cffi-rs/cffi","commit_stats":{"total_commits":84,"total_committers":5,"mean_commits":16.8,"dds":"0.29761904761904767","last_synced_commit":"85cec532eaefc815ae743f02b0bb69e7243c8729"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cffi-rs/cffi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cffi-rs%2Fcffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cffi-rs%2Fcffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cffi-rs%2Fcffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cffi-rs%2Fcffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cffi-rs","download_url":"https://codeload.github.com/cffi-rs/cffi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cffi-rs%2Fcffi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265033960,"owners_count":23701143,"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":["c","cthulhu","extern","ffi","marshal","rust"],"created_at":"2025-07-13T04:01:24.148Z","updated_at":"2025-07-13T04:02:06.370Z","avatar_url":"https://github.com/cffi-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/cffi-rs/cffi/workflows/CI/badge.svg)](https://github.com/cffi-rs/cffi/actions)\n[![Documentation](https://docs.rs/cffi/badge.svg)](https://docs.rs/cffi)\n\n# cffi\n\nUse the `#[cffi::marshal(...)]` proc macro to make unsafe C functions into much safer functions,\nboth for exporting interfaces and consuming functions from C libraries.\n\n## Usage\n\nSee the documentation for the various marshallers available.\n\n## Where is this used?\n\n- [pahkat](https://github.com/divvun/pahkat) - a multi-platform package management framework\n- [divvunspell](https://github.com/divvun/divvunspell) - a multi-platform highly efficient memory-mapping spell checking library\n\n## Background and philosophy\n\nWe enforce the usage of `stdint.h` types on the C side to simplify the implementation on the Rust side.\n\nInteresting reads:\n\n- [Marshaling Data with Platform Invoke](https://docs.microsoft.com/en-us/dotnet/framework/interop/marshaling-data-with-platform-invoke) (.NET)\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcffi-rs%2Fcffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcffi-rs%2Fcffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcffi-rs%2Fcffi/lists"}