{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1540","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1540/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1540/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1540/events","html_url":"https://github.com/rust-lang/cargo/pull/1540","id":69480315,"number":1540,"title":"Strip `rust-` and `-rs` affixes in `cargo new`","user":{"login":"lfairy","id":1572323,"avatar_url":"https://avatars.githubusercontent.com/u/1572323?v=3","gravatar_id":"","url":"https://api.github.com/users/lfairy","html_url":"https://github.com/lfairy","followers_url":"https://api.github.com/users/lfairy/followers","following_url":"https://api.github.com/users/lfairy/following{/other_user}","gists_url":"https://api.github.com/users/lfairy/gists{/gist_id}","starred_url":"https://api.github.com/users/lfairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfairy/subscriptions","organizations_url":"https://api.github.com/users/lfairy/orgs","repos_url":"https://api.github.com/users/lfairy/repos","events_url":"https://api.github.com/users/lfairy/events{/privacy}","received_events_url":"https://api.github.com/users/lfairy/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":2,"created_at":"2015-04-20T00:24:19Z","updated_at":"2015-04-20T04:48:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/1540","html_url":"https://github.com/rust-lang/cargo/pull/1540","diff_url":"https://github.com/rust-lang/cargo/pull/1540.diff","patch_url":"https://github.com/rust-lang/cargo/pull/1540.patch"},"body":"If the user invokes `cargo new` with a name of the form `rust-foo` or `foo-rs` (or any variation of the two), and the `--bin` option is *not* present, then the resulting `Cargo.toml` will have a `name` field of just `foo` instead.\r\n\r\nCloses #1532"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/94356034","html_url":"https://github.com/rust-lang/cargo/pull/1540#issuecomment-94356034","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1540","id":94356034,"user":{"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},"created_at":"2015-04-20T04:48:24Z","updated_at":"2015-04-20T04:48:24Z","body":"At minimum we should explain to the user what has happened and provide a way to force it if the user really wants."}}