{"action":"opened","number":105,"pull_request":{"url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105","id":201430116,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNDMwMTE2","html_url":"https://github.com/bazelbuild/rules_rust/pull/105","diff_url":"https://github.com/bazelbuild/rules_rust/pull/105.diff","patch_url":"https://github.com/bazelbuild/rules_rust/pull/105.patch","issue_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/105","number":105,"state":"open","locked":false,"title":"Add Rust target_triple utilities, convert repositories.bzl to use, add platform(..)","user":{"login":"acmcarther","id":1660129,"node_id":"MDQ6VXNlcjE2NjAxMjk=","avatar_url":"https://avatars0.githubusercontent.com/u/1660129?v=4","gravatar_id":"","url":"https://api.github.com/users/acmcarther","html_url":"https://github.com/acmcarther","followers_url":"https://api.github.com/users/acmcarther/followers","following_url":"https://api.github.com/users/acmcarther/following{/other_user}","gists_url":"https://api.github.com/users/acmcarther/gists{/gist_id}","starred_url":"https://api.github.com/users/acmcarther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acmcarther/subscriptions","organizations_url":"https://api.github.com/users/acmcarther/orgs","repos_url":"https://api.github.com/users/acmcarther/repos","events_url":"https://api.github.com/users/acmcarther/events{/privacy}","received_events_url":"https://api.github.com/users/acmcarther/received_events","type":"User","site_admin":false},"body":"This PR adds some target triple manipulating utilities that will be needed for cross compilation support per https://github.com/bazelbuild/rules_rust/issues/101. In order to avoid this new code being dead code, I converted the existing repositories.bzl to use these utilities internally.\r\n\r\nI also added platforms derived from the target triples accessible via @io_bazel_rules_rust//platforms (e.g. @io_bazel_rules_rust//platforms:x86_64-unknown-linux-gnu) which can be specified as a constraint on the command line using something like\r\n```\r\nbazel build @examples//hello_world:hello_world --platforms=\"@io_bazel_rules_rust//rust/platforms:s390x-unknown-linux-gnu\"\r\n```\r\n... but since none of the current toolchains are cross compilation compatible, this is pointless as exec_triple will always equal target_triple...\r\n\r\n```\r\nINFO: Build options have changed, discarding analysis cache.\r\nERROR: While resolving toolchains for target @examples//hello_world:hello_world: no matching toolchains found for types @io_bazel_rules_rust//rust:toolchain\r\nERROR: Analysis of target '@examples//hello_world:hello_world' failed; build aborted: no matching toolchains found for types @io_bazel_rules_rust//rust:toolchain\r\nINFO: Elapsed time: 0.271s\r\nINFO: 0 processes.\r\nFAILED: Build did NOT complete successfully (0 packages loaded)\r\n```\r\n\r\nNo rush on review\r\nR: @mfarrugi @damienmg ","created_at":"2018-07-14T01:48:24Z","updated_at":"2018-07-14T01:48:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105/commits","review_comments_url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105/comments","review_comment_url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/105/comments","statuses_url":"https://api.github.com/repos/bazelbuild/rules_rust/statuses/a55d990631b59317bf92e74d0fc1d72ae038127c","head":{"label":"bazelbuild:acm-better-triple-handling","ref":"acm-better-triple-handling","sha":"a55d990631b59317bf92e74d0fc1d72ae038127c","user":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":53955366,"node_id":"MDEwOlJlcG9zaXRvcnk1Mzk1NTM2Ng==","name":"rules_rust","full_name":"bazelbuild/rules_rust","owner":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazelbuild/rules_rust","description":"Rust rules for Bazel","fork":false,"url":"https://api.github.com/repos/bazelbuild/rules_rust","forks_url":"https://api.github.com/repos/bazelbuild/rules_rust/forks","keys_url":"https://api.github.com/repos/bazelbuild/rules_rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazelbuild/rules_rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazelbuild/rules_rust/teams","hooks_url":"https://api.github.com/repos/bazelbuild/rules_rust/hooks","issue_events_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/events{/number}","events_url":"https://api.github.com/repos/bazelbuild/rules_rust/events","assignees_url":"https://api.github.com/repos/bazelbuild/rules_rust/assignees{/user}","branches_url":"https://api.github.com/repos/bazelbuild/rules_rust/branches{/branch}","tags_url":"https://api.github.com/repos/bazelbuild/rules_rust/tags","blobs_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazelbuild/rules_rust/statuses/{sha}","languages_url":"https://api.github.com/repos/bazelbuild/rules_rust/languages","stargazers_url":"https://api.github.com/repos/bazelbuild/rules_rust/stargazers","contributors_url":"https://api.github.com/repos/bazelbuild/rules_rust/contributors","subscribers_url":"https://api.github.com/repos/bazelbuild/rules_rust/subscribers","subscription_url":"https://api.github.com/repos/bazelbuild/rules_rust/subscription","commits_url":"https://api.github.com/repos/bazelbuild/rules_rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazelbuild/rules_rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazelbuild/rules_rust/contents/{+path}","compare_url":"https://api.github.com/repos/bazelbuild/rules_rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazelbuild/rules_rust/merges","archive_url":"https://api.github.com/repos/bazelbuild/rules_rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazelbuild/rules_rust/downloads","issues_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues{/number}","pulls_url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls{/number}","milestones_url":"https://api.github.com/repos/bazelbuild/rules_rust/milestones{/number}","notifications_url":"https://api.github.com/repos/bazelbuild/rules_rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazelbuild/rules_rust/labels{/name}","releases_url":"https://api.github.com/repos/bazelbuild/rules_rust/releases{/id}","deployments_url":"https://api.github.com/repos/bazelbuild/rules_rust/deployments","created_at":"2016-03-15T15:19:27Z","updated_at":"2018-07-13T00:02:19Z","pushed_at":"2018-07-14T01:45:59Z","git_url":"git://github.com/bazelbuild/rules_rust.git","ssh_url":"git@github.com:bazelbuild/rules_rust.git","clone_url":"https://github.com/bazelbuild/rules_rust.git","svn_url":"https://github.com/bazelbuild/rules_rust","homepage":"https://bazelbuild.github.io/rules_rust/","size":196,"stargazers_count":69,"watchers_count":69,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":43,"open_issues":21,"watchers":69,"default_branch":"master"}},"base":{"label":"bazelbuild:master","ref":"master","sha":"566f08621099f200ce4ebf20045f0a106b820336","user":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"repo":{"id":53955366,"node_id":"MDEwOlJlcG9zaXRvcnk1Mzk1NTM2Ng==","name":"rules_rust","full_name":"bazelbuild/rules_rust","owner":{"login":"bazelbuild","id":11684617,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjg0NjE3","avatar_url":"https://avatars1.githubusercontent.com/u/11684617?v=4","gravatar_id":"","url":"https://api.github.com/users/bazelbuild","html_url":"https://github.com/bazelbuild","followers_url":"https://api.github.com/users/bazelbuild/followers","following_url":"https://api.github.com/users/bazelbuild/following{/other_user}","gists_url":"https://api.github.com/users/bazelbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/bazelbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazelbuild/subscriptions","organizations_url":"https://api.github.com/users/bazelbuild/orgs","repos_url":"https://api.github.com/users/bazelbuild/repos","events_url":"https://api.github.com/users/bazelbuild/events{/privacy}","received_events_url":"https://api.github.com/users/bazelbuild/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bazelbuild/rules_rust","description":"Rust rules for Bazel","fork":false,"url":"https://api.github.com/repos/bazelbuild/rules_rust","forks_url":"https://api.github.com/repos/bazelbuild/rules_rust/forks","keys_url":"https://api.github.com/repos/bazelbuild/rules_rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazelbuild/rules_rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazelbuild/rules_rust/teams","hooks_url":"https://api.github.com/repos/bazelbuild/rules_rust/hooks","issue_events_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/events{/number}","events_url":"https://api.github.com/repos/bazelbuild/rules_rust/events","assignees_url":"https://api.github.com/repos/bazelbuild/rules_rust/assignees{/user}","branches_url":"https://api.github.com/repos/bazelbuild/rules_rust/branches{/branch}","tags_url":"https://api.github.com/repos/bazelbuild/rules_rust/tags","blobs_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazelbuild/rules_rust/statuses/{sha}","languages_url":"https://api.github.com/repos/bazelbuild/rules_rust/languages","stargazers_url":"https://api.github.com/repos/bazelbuild/rules_rust/stargazers","contributors_url":"https://api.github.com/repos/bazelbuild/rules_rust/contributors","subscribers_url":"https://api.github.com/repos/bazelbuild/rules_rust/subscribers","subscription_url":"https://api.github.com/repos/bazelbuild/rules_rust/subscription","commits_url":"https://api.github.com/repos/bazelbuild/rules_rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazelbuild/rules_rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazelbuild/rules_rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazelbuild/rules_rust/contents/{+path}","compare_url":"https://api.github.com/repos/bazelbuild/rules_rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazelbuild/rules_rust/merges","archive_url":"https://api.github.com/repos/bazelbuild/rules_rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazelbuild/rules_rust/downloads","issues_url":"https://api.github.com/repos/bazelbuild/rules_rust/issues{/number}","pulls_url":"https://api.github.com/repos/bazelbuild/rules_rust/pulls{/number}","milestones_url":"https://api.github.com/repos/bazelbuild/rules_rust/milestones{/number}","notifications_url":"https://api.github.com/repos/bazelbuild/rules_rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazelbuild/rules_rust/labels{/name}","releases_url":"https://api.github.com/repos/bazelbuild/rules_rust/releases{/id}","deployments_url":"https://api.github.com/repos/bazelbuild/rules_rust/deployments","created_at":"2016-03-15T15:19:27Z","updated_at":"2018-07-13T00:02:19Z","pushed_at":"2018-07-14T01:45:59Z","git_url":"git://github.com/bazelbuild/rules_rust.git","ssh_url":"git@github.com:bazelbuild/rules_rust.git","clone_url":"https://github.com/bazelbuild/rules_rust.git","svn_url":"https://github.com/bazelbuild/rules_rust","homepage":"https://bazelbuild.github.io/rules_rust/","size":196,"stargazers_count":69,"watchers_count":69,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":43,"open_issues":21,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105"},"html":{"href":"https://github.com/bazelbuild/rules_rust/pull/105"},"issue":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/issues/105"},"comments":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/bazelbuild/rules_rust/statuses/a55d990631b59317bf92e74d0fc1d72ae038127c"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":218,"deletions":158,"changed_files":3}}
{"actor":{"display_login":"acmcarther"}}