{"id":13822079,"url":"https://github.com/sn99/rust-ffi-examples","last_synced_at":"2025-07-26T00:17:56.293Z","repository":{"id":103464225,"uuid":"148490361","full_name":"sn99/rust-ffi-examples","owner":"sn99","description":"FFI examples written in Rust","archived":false,"fork":false,"pushed_at":"2021-01-07T16:17:17.000Z","size":371,"stargazers_count":45,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T17:22:43.762Z","etag":null,"topics":["c","cmake","cpp","dart","ffi","ffi-bindings","ffi-wrapper","foreign-function-interface","golang","node","python","rust","swift"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":false,"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/sn99.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}},"created_at":"2018-09-12T14:06:23.000Z","updated_at":"2024-08-12T19:41:36.000Z","dependencies_parsed_at":"2024-01-15T15:57:17.578Z","dependency_job_id":null,"html_url":"https://github.com/sn99/rust-ffi-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Frust-ffi-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Frust-ffi-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Frust-ffi-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn99%2Frust-ffi-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sn99","download_url":"https://codeload.github.com/sn99/rust-ffi-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245753875,"owners_count":20666828,"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","cmake","cpp","dart","ffi","ffi-bindings","ffi-wrapper","foreign-function-interface","golang","node","python","rust","swift"],"created_at":"2024-08-04T08:01:41.672Z","updated_at":"2025-03-26T23:31:01.069Z","avatar_url":"https://github.com/sn99.png","language":"Makefile","readme":"FFI examples written in Rust\n\n## A table for C/C++ type in Rust\n\n|C type                 | Corresponding std::os::raw type |\n|-----------------------|:--------------------------------|\n|short                  | c_short                         |\n|int                    | c_int                           |\n|long                   | c_long                          |\n|long long              | c_longlong                      |\n|unsigned short         | c_ushort                        |\n|unsigned, unsigned int | c_uint                          |\n|unsigned long          | c_ulong                         |\n|unsigned long long     | c_ulonglong                     |\n|char                   | c_char                          |\n|signed char            | c_schar                         |\n|unsigned char          | c_uchar                         |\n|float                  | c_float                         |\n|double                 | c_double                        |\n|void *, const void *   | *mut c_void, *const c_void      |\n|usize                  | size_t                          |\n|isize                  | ptrdiff_t                       |\n\nYou can also use https://crates.io/crates/libc instead of std::os::raw\n","funding_links":[],"categories":["Makefile"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn99%2Frust-ffi-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsn99%2Frust-ffi-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn99%2Frust-ffi-examples/lists"}