{"id":19370800,"url":"https://github.com/playerx/deno-rust-plugin","last_synced_at":"2026-05-07T16:40:40.183Z","repository":{"id":147674906,"uuid":"283317231","full_name":"playerx/deno-rust-plugin","owner":"playerx","description":"How to write Rust plugin for Deno \u0026 performance benchmark for one custom plugin Op call","archived":false,"fork":false,"pushed_at":"2020-07-29T09:56:09.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T14:27:02.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"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/playerx.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-28T20:13:17.000Z","updated_at":"2024-12-24T12:52:05.000Z","dependencies_parsed_at":"2023-05-17T17:15:20.942Z","dependency_job_id":null,"html_url":"https://github.com/playerx/deno-rust-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/playerx/deno-rust-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fdeno-rust-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fdeno-rust-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fdeno-rust-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fdeno-rust-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/playerx","download_url":"https://codeload.github.com/playerx/deno-rust-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/playerx%2Fdeno-rust-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32746457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-10T08:16:37.688Z","updated_at":"2026-05-07T16:40:40.154Z","avatar_url":"https://github.com/playerx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Goals\n\nThis demo project had multiple goals:\n\n1. Demonstrate how to write custom Rust Plugin and call it from Typescript\n2. How to call Sync \u0026 Async functions in Rust from Typescript\n3. See how much performance overhead it takes to call pure empty function in Rust and return the result back to Typescript\n\n## Requirements\n\n- [Rust](https://www.rust-lang.org/tools/install)\n- [Deno](https://deno.land/#installation)\n\n## How to run\n\n1. `make`\n2. `make run` or `deno run --allow-plugin --unstable --allow-hrtime mod.ts`\n\n## Performance\n\nHardware:\n\n```\nMacBook Pro (Retina, 15-inch, Mid 2014)\n2.2 GHz Quad-Core Intel Core i7\n16 GB 1600 MHz DDR3\n```\n\n```\n100000 Iterations\n```\n\n**Result:**\n1 custom (sync) op call duration\n\n| Avg    | Fastest |\n| ------ | ------- |\n| 9820ns | 6649ns  |\n\n## Related\n\n[nodejs-cpp-binding](https://github.com/playerx/nodejs-cpp-binding)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerx%2Fdeno-rust-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplayerx%2Fdeno-rust-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplayerx%2Fdeno-rust-plugin/lists"}