{"action":"opened","number":57119,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/57119","id":240845772,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwODQ1Nzcy","html_url":"https://github.com/rust-lang/rust/pull/57119","diff_url":"https://github.com/rust-lang/rust/pull/57119.diff","patch_url":"https://github.com/rust-lang/rust/pull/57119.patch","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/57119","number":57119,"state":"open","locked":false,"title":"Add `io` and `arch` modules to `std::os::fortanix_sgx`","user":{"login":"jethrogb","id":1132307,"node_id":"MDQ6VXNlcjExMzIzMDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1132307?v=4","gravatar_id":"","url":"https://api.github.com/users/jethrogb","html_url":"https://github.com/jethrogb","followers_url":"https://api.github.com/users/jethrogb/followers","following_url":"https://api.github.com/users/jethrogb/following{/other_user}","gists_url":"https://api.github.com/users/jethrogb/gists{/gist_id}","starred_url":"https://api.github.com/users/jethrogb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jethrogb/subscriptions","organizations_url":"https://api.github.com/users/jethrogb/orgs","repos_url":"https://api.github.com/users/jethrogb/repos","events_url":"https://api.github.com/users/jethrogb/events{/privacy}","received_events_url":"https://api.github.com/users/jethrogb/received_events","type":"User","site_admin":false},"body":"This PR adds two more (unstable) modules to `std::os::fortanix_sgx` for the `x86_64-fortanix-unknown-sgx` target.\r\n\r\n### io\r\n`io` allows conversion between raw file descriptors and Rust types, similar to `std::os::unix::io`.\r\n\r\n### arch\r\n`arch` exposes the `ENCLU[EREPORT]` and `ENCLU[EGETKEY]` instructions. The current functions are very likely not going to be the final form of these functions (see also https://github.com/fortanix/rust-sgx/issues/15), but this should be sufficient to enable experimentation in libraries. I tried using the actual types (from the [`sgx-isa` crate](https://crates.io/crates/sgx-isa)) instead of byte arrays, but that would make `std` dependent on the `bitflags` crate which I didn't want to do at this time.","created_at":"2018-12-25T07:55:26Z","updated_at":"2018-12-25T07:55:26Z","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/rust-lang/rust/pulls/57119/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rust/pulls/57119/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/57119/comments","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/be565615dbed87a0d3fcdb7f62b2080b3dc288fa","head":{"label":"jethrogb:jb/sgx-os-mod2","ref":"jb/sgx-os-mod2","sha":"be565615dbed87a0d3fcdb7f62b2080b3dc288fa","user":{"login":"jethrogb","id":1132307,"node_id":"MDQ6VXNlcjExMzIzMDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1132307?v=4","gravatar_id":"","url":"https://api.github.com/users/jethrogb","html_url":"https://github.com/jethrogb","followers_url":"https://api.github.com/users/jethrogb/followers","following_url":"https://api.github.com/users/jethrogb/following{/other_user}","gists_url":"https://api.github.com/users/jethrogb/gists{/gist_id}","starred_url":"https://api.github.com/users/jethrogb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jethrogb/subscriptions","organizations_url":"https://api.github.com/users/jethrogb/orgs","repos_url":"https://api.github.com/users/jethrogb/repos","events_url":"https://api.github.com/users/jethrogb/events{/privacy}","received_events_url":"https://api.github.com/users/jethrogb/received_events","type":"User","site_admin":false},"repo":{"id":38935392,"node_id":"MDEwOlJlcG9zaXRvcnkzODkzNTM5Mg==","name":"rust","full_name":"jethrogb/rust","private":false,"owner":{"login":"jethrogb","id":1132307,"node_id":"MDQ6VXNlcjExMzIzMDc=","avatar_url":"https://avatars0.githubusercontent.com/u/1132307?v=4","gravatar_id":"","url":"https://api.github.com/users/jethrogb","html_url":"https://github.com/jethrogb","followers_url":"https://api.github.com/users/jethrogb/followers","following_url":"https://api.github.com/users/jethrogb/following{/other_user}","gists_url":"https://api.github.com/users/jethrogb/gists{/gist_id}","starred_url":"https://api.github.com/users/jethrogb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jethrogb/subscriptions","organizations_url":"https://api.github.com/users/jethrogb/orgs","repos_url":"https://api.github.com/users/jethrogb/repos","events_url":"https://api.github.com/users/jethrogb/events{/privacy}","received_events_url":"https://api.github.com/users/jethrogb/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jethrogb/rust","description":"A safe, concurrent, practical language.","fork":true,"url":"https://api.github.com/repos/jethrogb/rust","forks_url":"https://api.github.com/repos/jethrogb/rust/forks","keys_url":"https://api.github.com/repos/jethrogb/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jethrogb/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jethrogb/rust/teams","hooks_url":"https://api.github.com/repos/jethrogb/rust/hooks","issue_events_url":"https://api.github.com/repos/jethrogb/rust/issues/events{/number}","events_url":"https://api.github.com/repos/jethrogb/rust/events","assignees_url":"https://api.github.com/repos/jethrogb/rust/assignees{/user}","branches_url":"https://api.github.com/repos/jethrogb/rust/branches{/branch}","tags_url":"https://api.github.com/repos/jethrogb/rust/tags","blobs_url":"https://api.github.com/repos/jethrogb/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jethrogb/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jethrogb/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/jethrogb/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jethrogb/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/jethrogb/rust/languages","stargazers_url":"https://api.github.com/repos/jethrogb/rust/stargazers","contributors_url":"https://api.github.com/repos/jethrogb/rust/contributors","subscribers_url":"https://api.github.com/repos/jethrogb/rust/subscribers","subscription_url":"https://api.github.com/repos/jethrogb/rust/subscription","commits_url":"https://api.github.com/repos/jethrogb/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/jethrogb/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/jethrogb/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/jethrogb/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/jethrogb/rust/contents/{+path}","compare_url":"https://api.github.com/repos/jethrogb/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jethrogb/rust/merges","archive_url":"https://api.github.com/repos/jethrogb/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jethrogb/rust/downloads","issues_url":"https://api.github.com/repos/jethrogb/rust/issues{/number}","pulls_url":"https://api.github.com/repos/jethrogb/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/jethrogb/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/jethrogb/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jethrogb/rust/labels{/name}","releases_url":"https://api.github.com/repos/jethrogb/rust/releases{/id}","deployments_url":"https://api.github.com/repos/jethrogb/rust/deployments","created_at":"2015-07-11T18:03:29Z","updated_at":"2016-02-09T03:28:25Z","pushed_at":"2018-12-25T07:42:08Z","git_url":"git://github.com/jethrogb/rust.git","ssh_url":"git@github.com:jethrogb/rust.git","clone_url":"https://github.com/jethrogb/rust.git","svn_url":"https://github.com/jethrogb/rust","homepage":"http://www.rust-lang.org","size":404440,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rust-lang:master","ref":"master","sha":"e57ab2699d4c2466449444b0faffc3fb11aefac2","user":{"login":"rust-lang","id":5430905,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MzA5MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/5430905?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":724712,"node_id":"MDEwOlJlcG9zaXRvcnk3MjQ3MTI=","name":"rust","full_name":"rust-lang/rust","private":false,"owner":{"login":"rust-lang","id":5430905,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MzA5MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/5430905?v=4","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rust-lang/rust","description":"Empowering everyone to build reliable and efficient software.","fork":false,"url":"https://api.github.com/repos/rust-lang/rust","forks_url":"https://api.github.com/repos/rust-lang/rust/forks","keys_url":"https://api.github.com/repos/rust-lang/rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rust/teams","hooks_url":"https://api.github.com/repos/rust-lang/rust/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rust/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rust/events","assignees_url":"https://api.github.com/repos/rust-lang/rust/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rust/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rust/tags","blobs_url":"https://api.github.com/repos/rust-lang/rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rust/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rust/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rust/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rust/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rust/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rust/subscription","commits_url":"https://api.github.com/repos/rust-lang/rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rust/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rust/merges","archive_url":"https://api.github.com/repos/rust-lang/rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rust/downloads","issues_url":"https://api.github.com/repos/rust-lang/rust/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rust/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rust/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rust/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rust/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang/rust/deployments","created_at":"2010-06-16T20:39:03Z","updated_at":"2018-12-25T07:51:59Z","pushed_at":"2018-12-25T07:06:34Z","git_url":"git://github.com/rust-lang/rust.git","ssh_url":"git@github.com:rust-lang/rust.git","clone_url":"https://github.com/rust-lang/rust.git","svn_url":"https://github.com/rust-lang/rust","homepage":"https://www.rust-lang.org","size":410191,"stargazers_count":32680,"watchers_count":32680,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5404,"mirror_url":null,"archived":false,"open_issues_count":4721,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5404,"open_issues":4721,"watchers":32680,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/57119"},"html":{"href":"https://github.com/rust-lang/rust/pull/57119"},"issue":{"href":"https://api.github.com/repos/rust-lang/rust/issues/57119"},"comments":{"href":"https://api.github.com/repos/rust-lang/rust/issues/57119/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/57119/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rust/pulls/57119/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rust/statuses/be565615dbed87a0d3fcdb7f62b2080b3dc288fa"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":307,"deletions":11,"changed_files":8}}
{"actor":{"display_login":"jethrogb"}}