{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2081","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2081/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2081/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2081/events","html_url":"https://github.com/rust-lang/cargo/pull/2081","id":113264601,"number":2081,"title":"Implement `cargo init` (#21)","user":{"login":"vi","id":173219,"avatar_url":"https://avatars.githubusercontent.com/u/173219?v=3","gravatar_id":"","url":"https://api.github.com/users/vi","html_url":"https://github.com/vi","followers_url":"https://api.github.com/users/vi/followers","following_url":"https://api.github.com/users/vi/following{/other_user}","gists_url":"https://api.github.com/users/vi/gists{/gist_id}","starred_url":"https://api.github.com/users/vi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vi/subscriptions","organizations_url":"https://api.github.com/users/vi/orgs","repos_url":"https://api.github.com/users/vi/repos","events_url":"https://api.github.com/users/vi/events{/privacy}","received_events_url":"https://api.github.com/users/vi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wycats","id":4,"avatar_url":"https://avatars.githubusercontent.com/u/4?v=3","gravatar_id":"","url":"https://api.github.com/users/wycats","html_url":"https://github.com/wycats","followers_url":"https://api.github.com/users/wycats/followers","following_url":"https://api.github.com/users/wycats/following{/other_user}","gists_url":"https://api.github.com/users/wycats/gists{/gist_id}","starred_url":"https://api.github.com/users/wycats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wycats/subscriptions","organizations_url":"https://api.github.com/users/wycats/orgs","repos_url":"https://api.github.com/users/wycats/repos","events_url":"https://api.github.com/users/wycats/events{/privacy}","received_events_url":"https://api.github.com/users/wycats/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-26T00:19:29Z","updated_at":"2015-10-26T00:19:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/2081","html_url":"https://github.com/rust-lang/cargo/pull/2081","diff_url":"https://github.com/rust-lang/cargo/pull/2081.diff","patch_url":"https://github.com/rust-lang/cargo/pull/2081.patch"},"body":"Implement `cargo init` command and appropriate tests.\r\n\r\nFeatures:\r\n* Working like `cargo new` if there are no files in current directory\r\n* Auto-detection of `--bin`\r\n* Auto-detection of already existing VSC and appending to respecive ignore file\r\n* Appending of appropriate `[lib]` or `[[bin]]` section to `Cargo.toml` in case of some non-standard source locations\r\n\r\nConcerns:\r\n* I'm not experienced in Rust + lazy => code looks poorer compared to the rest Cargo code\r\n* The test don't cover 100% of functions\r\n* Project consisting of both binary and library is not handled\r\n* Many deviations from [previously proposed algorithm](https://github.com/rust-lang/cargo/pull/2008#issuecomment-145607870)\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/150991124","html_url":"https://github.com/rust-lang/cargo/pull/2081#issuecomment-150991124","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2081","id":150991124,"user":{"login":"rust-highfive","id":7378925,"avatar_url":"https://avatars.githubusercontent.com/u/7378925?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-highfive","html_url":"https://github.com/rust-highfive","followers_url":"https://api.github.com/users/rust-highfive/followers","following_url":"https://api.github.com/users/rust-highfive/following{/other_user}","gists_url":"https://api.github.com/users/rust-highfive/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-highfive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-highfive/subscriptions","organizations_url":"https://api.github.com/users/rust-highfive/orgs","repos_url":"https://api.github.com/users/rust-highfive/repos","events_url":"https://api.github.com/users/rust-highfive/events{/privacy}","received_events_url":"https://api.github.com/users/rust-highfive/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T00:19:34Z","updated_at":"2015-10-26T00:19:34Z","body":"Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @wycats (or someone else) soon.\n\nIf any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.\n\nPlease see [the contribution instructions](https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md) for more information.\n"}}