{"action":"created","issue":{"url":"https://api.github.com/repos/hansihe/rustler/issues/83","repository_url":"https://api.github.com/repos/hansihe/rustler","labels_url":"https://api.github.com/repos/hansihe/rustler/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/hansihe/rustler/issues/83/comments","events_url":"https://api.github.com/repos/hansihe/rustler/issues/83/events","html_url":"https://github.com/hansihe/rustler/issues/83","id":206680611,"number":83,"title":"Cross-compilation","user":{"login":"bitwalker","id":955793,"avatar_url":"https://avatars3.githubusercontent.com/u/955793?v=3","gravatar_id":"","url":"https://api.github.com/users/bitwalker","html_url":"https://github.com/bitwalker","followers_url":"https://api.github.com/users/bitwalker/followers","following_url":"https://api.github.com/users/bitwalker/following{/other_user}","gists_url":"https://api.github.com/users/bitwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/bitwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitwalker/subscriptions","organizations_url":"https://api.github.com/users/bitwalker/orgs","repos_url":"https://api.github.com/users/bitwalker/repos","events_url":"https://api.github.com/users/bitwalker/events{/privacy}","received_events_url":"https://api.github.com/users/bitwalker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-10T01:22:14Z","updated_at":"2017-05-05T20:21:02Z","closed_at":null,"body":"Hi! I'm really glad to see this project!\r\n\r\nI'm curious if there is a documented path for cross-compiling NIFs using rustler when used with releases. More specifically, if I have a cross-compiled ERTS from some other architecture, I can build a release for that architecture, but NIFs must also be cross-compiled for that to work. I would like to build NIFs using Rust, and I know it has facilities for cross-compilation, but reading through the documentation it wasn't clear how I would specify that in my configuration. To be clear, I'm very new to Rust, and I don't have immediate plans to write any NIFs, but as I'm the maintainer of [distillery](https://github.com/bitwalker/distillery), one of the things I'd like to do this year is make building cross-compiled releases easier to set up.\r\n\r\nIf this is something that is already provided by the toolchain, perhaps some notes on how to configure it would be a good idea to add in the docs?\r\n"},"comment":{"url":"https://api.github.com/repos/hansihe/rustler/issues/comments/299566194","html_url":"https://github.com/hansihe/rustler/issues/83#issuecomment-299566194","issue_url":"https://api.github.com/repos/hansihe/rustler/issues/83","id":299566194,"user":{"login":"MikaAK","id":4650931,"avatar_url":"https://avatars3.githubusercontent.com/u/4650931?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaAK","html_url":"https://github.com/MikaAK","followers_url":"https://api.github.com/users/MikaAK/followers","following_url":"https://api.github.com/users/MikaAK/following{/other_user}","gists_url":"https://api.github.com/users/MikaAK/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaAK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaAK/subscriptions","organizations_url":"https://api.github.com/users/MikaAK/orgs","repos_url":"https://api.github.com/users/MikaAK/repos","events_url":"https://api.github.com/users/MikaAK/events{/privacy}","received_events_url":"https://api.github.com/users/MikaAK/received_events","type":"User","site_admin":false},"created_at":"2017-05-05T20:21:02Z","updated_at":"2017-05-05T20:21:02Z","body":"Hi there, I'm struggling with this currently, ideally I would love to cross compile but I'm unsure of what \"setting up the toolchain for cross compilation\" actually means. I know Rust can be cross compiled with cargo, but I'm unsure of how that process links in with distillery when using rustler. Would love it if anyone has more info on hooking up the toolchain or what the future plans for this issue are! "}}
{"actor":{"display_login":"MikaAK"}}