{"id":13676539,"url":"https://github.com/rust-diplomat/diplomat","last_synced_at":"2025-04-29T07:32:42.290Z","repository":{"id":37074610,"uuid":"377296713","full_name":"rust-diplomat/diplomat","owner":"rust-diplomat","description":"Experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code","archived":false,"fork":false,"pushed_at":"2025-04-24T18:18:38.000Z","size":5349,"stargazers_count":600,"open_issues_count":109,"forks_count":58,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-24T19:30:04.937Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://rust-diplomat.github.io/diplomat/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-diplomat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"ContributingOnWindows.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/functions.ds","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-06-15T21:23:09.000Z","updated_at":"2025-04-24T18:18:42.000Z","dependencies_parsed_at":"2024-03-18T14:47:50.253Z","dependency_job_id":"2663aea3-f5fb-461f-86df-349b99617868","html_url":"https://github.com/rust-diplomat/diplomat","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-diplomat%2Fdiplomat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-diplomat%2Fdiplomat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-diplomat%2Fdiplomat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-diplomat%2Fdiplomat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-diplomat","download_url":"https://codeload.github.com/rust-diplomat/diplomat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251456043,"owners_count":21592280,"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":["hacktoberfest"],"created_at":"2024-08-02T13:00:29.226Z","updated_at":"2025-04-29T07:32:37.281Z","avatar_url":"https://github.com/rust-diplomat.png","language":"Rust","funding_links":[],"categories":["Uncategorized","Rust","FFI Bindings"],"sub_categories":["Uncategorized"],"readme":"# Diplomat\nDiplomat is an experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code. With Diplomat, you can simply define Rust APIs to be exposed over FFI and get high-level C, C++, and JavaScript bindings automatically!\n\nDiplomat supports languages through a plugin interface that makes it easy to add support for your favourite language. See `tool/src/{c, cpp, js}` for examples of existing language plugins.\n\n## Installation\nFirst, install the CLI tool for generating bindings:\n```bash\n$ cargo install diplomat-tool\n```\n\nThen, add the Diplomat macro and runtime as dependencies to your project:\n```toml\ndiplomat = \"0.4.0\"\ndiplomat-runtime = \"0.4.0\"\n```\n\n## Getting Started\n\nDocumentation on how to use Diplomat can be found [in the book](https://rust-diplomat.github.io/book/).\n\n### Architecture\nSee the [design doc](docs/design_doc.md) for more details.\n\n### Building and Testing\nSimply run `cargo build` to build all the libraries and compile an example. To run unit tests, run `cargo test`.\n\nDiplomat makes use of snapshot tests to check macro and code generation logic. When code generation logic changes and the snapshots need to be updated, run `cargo insta review` (run `cargo install cargo-insta` to get the tool) to view the changes and update the snapshots.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-diplomat%2Fdiplomat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-diplomat%2Fdiplomat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-diplomat%2Fdiplomat/lists"}