{"id":22970874,"url":"https://github.com/fbernier/rebar3_rust","last_synced_at":"2025-04-02T06:15:40.759Z","repository":{"id":141978587,"uuid":"82842939","full_name":"fbernier/rebar3_rust","owner":"fbernier","description":"Compile rust NIFs for erlang projects.","archived":false,"fork":false,"pushed_at":"2017-02-22T19:22:50.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T20:43:44.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":false,"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/fbernier.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":"2017-02-22T19:14:09.000Z","updated_at":"2018-10-25T20:53:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"d28c1123-9665-41d9-a4b5-45bbb8b87b02","html_url":"https://github.com/fbernier/rebar3_rust","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/fbernier%2Frebar3_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Frebar3_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Frebar3_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbernier%2Frebar3_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbernier","download_url":"https://codeload.github.com/fbernier/rebar3_rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763953,"owners_count":20829800,"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":[],"created_at":"2024-12-14T22:14:52.743Z","updated_at":"2025-04-02T06:15:40.728Z","avatar_url":"https://github.com/fbernier.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rebar3_rust\n\nCompile rust crates for erlang projects.\n\n## Use\n\nAdd the plugin and hooks to your `rebar.config`\n\n```erlang\n{\n  plugins,\n  [\n    {\n      rebar3_rust,\n      {\n        git,\n        \"https://github.com/sdwolf/rebar3_rust.git\",\n        {branch, \"master\"}\n      }\n    }\n  ]\n}.\n\n{\n  provider_hooks,\n  [\n    {\n      post,\n      [\n        {compile, {rust, compile}},\n      ]\n    }\n  ]\n}.\n```\n\nAdd the following to your `.gitignore`\n\n```\ncrates/*/target\npriv/*\n!priv/.keep\n```\n\n\nYou can find an example usage [here](https://github.com/sdwolf/rustfromerl).\n\n## Upgrade\n\n```bash\nrebar3 plugins upgrade rebar3_rust\n```\n\n## Development\n\nGo inside the downloaded dependency folder:\n\n```bash\ncd _build/default/plugins/rebar3_rust\n```\n\nStart your erlang docker container:\n\n```bash\ndocker-here erlang bash\n\n# Or use the full command if you do not have the docker-here alias:\ndocker run --rm -it -u `id -u`:`id -g` -v \"$PWD\":/work -w /work erlang bash\n```\n\nCompile from a dependent project:\n\n```bash\nrebar3 compile \u0026\u0026 rm -rf ebin/ \u0026\u0026 mv _build/default/lib/rebar3_rust/ebin/ .\n```\n\n## Resources\n\nhttps://github.com/goertzenator/erlang_nif-sys\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbernier%2Frebar3_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbernier%2Frebar3_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbernier%2Frebar3_rust/lists"}