{"id":21107327,"url":"https://github.com/ninjascl/dome-rust-plugin-example","last_synced_at":"2026-05-17T13:38:22.736Z","repository":{"id":119741289,"uuid":"584219922","full_name":"NinjasCL/dome-rust-plugin-example","owner":"NinjasCL","description":"An example for creating DOME plugins that calls Rust functions","archived":false,"fork":false,"pushed_at":"2023-01-01T22:07:20.000Z","size":5572,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T03:42:17.805Z","etag":null,"topics":["dome","example","plugin","rust","wren"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NinjasCL.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":"2023-01-01T22:05:02.000Z","updated_at":"2023-01-01T22:08:03.000Z","dependencies_parsed_at":"2023-07-21T00:30:45.296Z","dependency_job_id":null,"html_url":"https://github.com/NinjasCL/dome-rust-plugin-example","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/NinjasCL%2Fdome-rust-plugin-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fdome-rust-plugin-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fdome-rust-plugin-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fdome-rust-plugin-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinjasCL","download_url":"https://codeload.github.com/NinjasCL/dome-rust-plugin-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551253,"owners_count":20309300,"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":["dome","example","plugin","rust","wren"],"created_at":"2024-11-20T00:38:38.772Z","updated_at":"2026-05-17T13:38:17.685Z","avatar_url":"https://github.com/NinjasCL.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example DOME Rust Plugin\n\nThis example is similar to the [traditional plugin](https://github.com/domeengine/dome/tree/main/examples/plugin). But\nwe are calling a Rust function to log a message.\n\n![console](https://user-images.githubusercontent.com/292738/210174087-e0ea398f-c71d-423d-8350-956340f88f45.png)\n\n- *test.c*:\n\n```c\nvoid alertMethod(WrenVM* vm) {\n  // ...\n  core-\u003elog(ctx, \"%s\\n\", rust_function());\n  // ...\n}\n```\n\nIs important to include the generated static lib in the compilation step. `libexample.a`\n\n```Makefile\ntest.dylib: test.c\n\tgcc -dynamiclib -o test.dylib -I../../include test.c libexample.a -undefined dynamic_lookup\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fdome-rust-plugin-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjascl%2Fdome-rust-plugin-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fdome-rust-plugin-example/lists"}