{"id":13437837,"url":"https://github.com/rusterlium/rustler","last_synced_at":"2026-05-02T21:01:52.482Z","repository":{"id":36676751,"uuid":"40983173","full_name":"rusterlium/rustler","owner":"rusterlium","description":"Safe Rust bridge for creating Erlang NIF functions","archived":false,"fork":false,"pushed_at":"2026-03-15T18:14:42.000Z","size":2307,"stargazers_count":4764,"open_issues_count":47,"forks_count":236,"subscribers_count":74,"default_branch":"master","last_synced_at":"2026-03-29T17:12:47.343Z","etag":null,"topics":["binding","elixir","erlang","ffi","nif","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/crate/rustler","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/rusterlium.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-08-18T16:25:26.000Z","updated_at":"2026-03-28T05:26:47.000Z","dependencies_parsed_at":"2024-01-05T19:35:06.675Z","dependency_job_id":"a905f5e2-85bf-4bef-8d39-11752c719dea","html_url":"https://github.com/rusterlium/rustler","commit_stats":{"total_commits":1016,"total_committers":87,"mean_commits":11.67816091954023,"dds":0.8011811023622047,"last_synced_commit":"c2b0a7729a3a04333204107173eedd838f48d44e"},"previous_names":["hansihe/rustler"],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/rusterlium/rustler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusterlium%2Frustler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusterlium%2Frustler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusterlium%2Frustler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusterlium%2Frustler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusterlium","download_url":"https://codeload.github.com/rusterlium/rustler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusterlium%2Frustler/sbom","scorecard":{"id":790712,"data":{"date":"2025-08-11","repo":{"name":"github.com/rusterlium/rustler","commit":"05f79740eb986cf9c338d2f3d96ebf95b35ad124"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Code-Review","score":3,"reason":"Found 9/26 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":10,"reason":"13 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:111: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:118: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/rusterlium/rustler/main.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T07:27:23.219Z","repository_id":36676751,"created_at":"2025-08-23T07:27:23.219Z","updated_at":"2025-08-23T07:27:23.219Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32549387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T19:18:06.202Z","status":"ssl_error","status_checked_at":"2026-05-02T19:16:21.335Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["binding","elixir","erlang","ffi","nif","rust"],"created_at":"2024-07-31T03:01:00.585Z","updated_at":"2026-05-02T21:01:52.476Z","avatar_url":"https://github.com/rusterlium.png","language":"Rust","funding_links":[],"categories":["Development tools","Rust","开发工具 Development tools","开发工具","其他"],"sub_categories":["FFI","FFI FFI","示例 FFI","网络服务_其他"],"readme":"# Rustler\n\n[Documentation](https://docs.rs/rustler/latest/rustler) | [Getting Started](https://github.com/rusterlium/rustler/blob/master/README.md#getting-started) | [Example](https://github.com/rusterlium/NifIo)\n\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rusterlium/rustler/main.yml)](https://github.com/rusterlium/rustler/actions/workflows/main.yml)\n[![Hex.pm package version](https://img.shields.io/hexpm/v/rustler.svg)](https://hex.pm/packages/rustler)\n[![Crates.io package version](https://img.shields.io/crates/v/rustler.svg)](https://crates.io/crates/rustler)\n[![Last Updated](https://img.shields.io/github/last-commit/rusterlium/rustler.svg)](https://github.com/rusterlium/rustler/commits/master)\n\nRustler is a library for writing Erlang NIFs in safe Rust code. That means\nthere should be no ways to crash the BEAM (Erlang VM). The library provides\nfacilities for generating the boilerplate for interacting with the BEAM,\nhandles encoding and decoding of Erlang terms, and catches rust panics before\nthey unwind into C.\n\nThe library provides functionality for both Erlang and Elixir, however Elixir\nis favored as of now.\n\n#### Features\n\n**Safety**  \nThe code you write in a Rust NIF should never be able to crash the BEAM.\n\n**Interop**  \nDecoding and encoding rust values into Erlang terms is as easy as a function call.\n\n**Type composition**  \nMaking a Rust struct encodable and decodable to Erlang or Elixir can be done with a single attribute.\n\n**Resource objects**  \nEnables you to safely pass a reference to a Rust struct into Erlang code. The struct will be automatically dropped when it's no longer referenced.\n\n#### Getting started\n\nThe easiest way of getting started is the [rustler Elixir library](https://hex.pm/packages/rustler).\n\n- Add the [rustler Elixir library](https://hex.pm/packages/rustler) as a\n  dependency of your project.\n- Run `mix rustler.new` to generate a new NIF in your project. Follow the\n  instructions.\n- If you are already using [`serde`](https://serde.rs) and/or have been using\n  `serde_rustler` before, please enable the `serde` feature in your NIF crate's\n  `Cargo.toml` on the `rustler` dependency.\n\n#### What it looks like\n\nThis is the code for a minimal NIF that adds two numbers and returns the result.\n\n```rust\n#[rustler::nif]\nfn add(a: i64, b: i64) -\u003e i64 {\n    a + b\n}\n\nrustler::init!(\"Elixir.Math\");\n```\n\n#### Minimal Supported Rust Version (MSRV)\n\nRustler currently has a minimal supported Rust version (MSRV) of 1.91. This\nis the configured version in `.clippy.toml`.\n\n#### Supported OTP and Elixir Versions\n\nRustler aims to support the newest three major OTP versions as well as newest three minor Elixir versions.\n\n#### Supported NIF version\n\nThe minimal supported NIF version for a library should be defined via Cargo\nfeatures. The default is currently `2.15` (Erlang/OTP 22). To use features from\nNIF version `2.16` (Erlang/OTP 24) or `2.17` (Erlang/OTP 26), the respective\nfeature flag has to be enabled on the dependency:\n\n```toml\n[dependencies]\nrustler = { version = \"...\", features = [\"nif_version_2_16\"] }\n```\n\n#### Community\n\nYou can find us in the `#rustler:matrix.org` channel on [Matrix](https://matrix.to/#/#rustler:matrix.org)\nor in the `#rustler` channel in [the Elixir lang Slack](https://elixir-slackin.herokuapp.com/).\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 submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusterlium%2Frustler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusterlium%2Frustler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusterlium%2Frustler/lists"}