{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2775","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2775/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2775/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2775/events","html_url":"https://github.com/rust-lang/cargo/issues/2775","id":158732743,"node_id":"MDU6SXNzdWUxNTg3MzI3NDM=","number":2775,"title":"Accept hyphen in crate name in place of underscore","user":{"login":"dtolnay","id":1940490,"node_id":"MDQ6VXNlcjE5NDA0OTA=","avatar_url":"https://avatars2.githubusercontent.com/u/1940490?v=4","gravatar_id":"","url":"https://api.github.com/users/dtolnay","html_url":"https://github.com/dtolnay","followers_url":"https://api.github.com/users/dtolnay/followers","following_url":"https://api.github.com/users/dtolnay/following{/other_user}","gists_url":"https://api.github.com/users/dtolnay/gists{/gist_id}","starred_url":"https://api.github.com/users/dtolnay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtolnay/subscriptions","organizations_url":"https://api.github.com/users/dtolnay/orgs","repos_url":"https://api.github.com/users/dtolnay/repos","events_url":"https://api.github.com/users/dtolnay/events{/privacy}","received_events_url":"https://api.github.com/users/dtolnay/received_events","type":"User","site_admin":false},"labels":[{"id":601613089,"node_id":"MDU6TGFiZWw2MDE2MTMwODk=","url":"https://api.github.com/repos/rust-lang/cargo/labels/A-crate-dependencies","name":"A-crate-dependencies","color":"fbca04","default":false},{"id":601610725,"node_id":"MDU6TGFiZWw2MDE2MTA3MjU=","url":"https://api.github.com/repos/rust-lang/cargo/labels/A-interacts-with-crates.io","name":"A-interacts-with-crates.io","color":"fbca04","default":false},{"id":677709505,"node_id":"MDU6TGFiZWw2Nzc3MDk1MDU=","url":"https://api.github.com/repos/rust-lang/cargo/labels/C-feature-request","name":"C-feature-request","color":"f5f1fd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-06-06T17:36:29Z","updated_at":"2018-08-04T07:16:23Z","closed_at":null,"author_association":"MEMBER","body":"Crates.io currently accepts hyphens for crates that use underscores, both in the [web interface](https://crates.io/crates/serde-codegen) and in the [API](https://github.com/rust-lang/crates.io/issues/283).\n\nCargo does not, but should.\n\n```\nerror: no matching package named `serde-codegen` found (required by `testing`)\nlocation searched: registry https://github.com/rust-lang/crates.io-index\nversion required: *\n```\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/410430036","html_url":"https://github.com/rust-lang/cargo/issues/2775#issuecomment-410430036","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2775","id":410430036,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDQzMDAzNg==","user":{"login":"dhardy","id":134893,"node_id":"MDQ6VXNlcjEzNDg5Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/134893?v=4","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"created_at":"2018-08-04T07:16:23Z","updated_at":"2018-08-04T07:16:23Z","author_association":"NONE","body":"Why not go further and normalise all names to use hyphens `-`? The first step would be a new version of the query which only returns/finds normalised names; the second step would be a Cargo update to normalise then use the new version. The third step (a bit later perhaps) would be to only show the normalised names on crates.io."}}
{"actor":{"display_login":"dhardy"}}