{"action":"created","issue":{"url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/149","repository_url":"https://api.github.com/repos/alexcrichton/tar-rs","labels_url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/149/comments","events_url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/149/events","html_url":"https://github.com/alexcrichton/tar-rs/issues/149","id":310907692,"number":149,"title":"Feeding a Builder parts of a file at a time","user":{"login":"jjl","id":65081,"avatar_url":"https://avatars1.githubusercontent.com/u/65081?v=4","gravatar_id":"","url":"https://api.github.com/users/jjl","html_url":"https://github.com/jjl","followers_url":"https://api.github.com/users/jjl/followers","following_url":"https://api.github.com/users/jjl/following{/other_user}","gists_url":"https://api.github.com/users/jjl/gists{/gist_id}","starred_url":"https://api.github.com/users/jjl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjl/subscriptions","organizations_url":"https://api.github.com/users/jjl/orgs","repos_url":"https://api.github.com/users/jjl/repos","events_url":"https://api.github.com/users/jjl/events{/privacy}","received_events_url":"https://api.github.com/users/jjl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-04-03T16:27:07Z","updated_at":"2018-04-29T08:54:49Z","closed_at":null,"author_association":"NONE","body":"Currently, so far as I can tell, it's not possible to stream a file's contents as it becomes available - it is necessary to read an entire file into memory at a time to add it to an archive.\r\n\r\nIt would be awesome if it were possible to build up an entry's body incrementally, such as in response to filesystem events from tokio."},"comment":{"url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/comments/385236308","html_url":"https://github.com/alexcrichton/tar-rs/issues/149#issuecomment-385236308","issue_url":"https://api.github.com/repos/alexcrichton/tar-rs/issues/149","id":385236308,"user":{"login":"jjl","id":65081,"avatar_url":"https://avatars1.githubusercontent.com/u/65081?v=4","gravatar_id":"","url":"https://api.github.com/users/jjl","html_url":"https://github.com/jjl","followers_url":"https://api.github.com/users/jjl/followers","following_url":"https://api.github.com/users/jjl/following{/other_user}","gists_url":"https://api.github.com/users/jjl/gists{/gist_id}","starred_url":"https://api.github.com/users/jjl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjl/subscriptions","organizations_url":"https://api.github.com/users/jjl/orgs","repos_url":"https://api.github.com/users/jjl/repos","events_url":"https://api.github.com/users/jjl/events{/privacy}","received_events_url":"https://api.github.com/users/jjl/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T08:54:49Z","updated_at":"2018-04-29T08:54:49Z","author_association":"NONE","body":"I've had a go at something slightly better (imo) than this initial solution, but I can't quite finish it because I'm slightly confused by what this code (from `prepare_header`) is doing:\r\n\r\n```\r\n        let mut data2 = data.chain(io::repeat(0).take(0));\r\n        append(dst, &header2, &mut data2)?;\r\n```\r\n\r\nIn particular, does chaining `.take(0)` not make this a noop?"}}
{"actor":{"display_login":"jjl"}}