{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/6311","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/6311/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/6311/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/6311/events","html_url":"https://github.com/rust-lang/cargo/pull/6311","id":380390343,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNjAwMjk0","number":6311,"title":"Stabilize the `rename-dependency` feature","user":{"login":"alexcrichton","id":64996,"node_id":"MDQ6VXNlcjY0OTk2","avatar_url":"https://avatars1.githubusercontent.com/u/64996?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[{"id":693727038,"node_id":"MDU6TGFiZWw2OTM3MjcwMzg=","url":"https://api.github.com/repos/rust-lang/cargo/labels/T-cargo","name":"T-cargo","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-13T19:39:11Z","updated_at":"2018-11-13T20:23:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/6311","html_url":"https://github.com/rust-lang/cargo/pull/6311","diff_url":"https://github.com/rust-lang/cargo/pull/6311.diff","patch_url":"https://github.com/rust-lang/cargo/pull/6311.patch"},"body":"This commit stabilizes Cargo's `rename-dependency` feature which allows\r\nrenaming packages in `Cargo.toml`, enabling importing multiple versions\r\nof a single crate or simply avoiding a `use foo as bar` in `src/lib.rs`.\r\n\r\nCloses #5653"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/438423053","html_url":"https://github.com/rust-lang/cargo/pull/6311#issuecomment-438423053","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/6311","id":438423053,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQyMzA1Mw==","user":{"login":"nrc","id":762626,"node_id":"MDQ6VXNlcjc2MjYyNg==","avatar_url":"https://avatars0.githubusercontent.com/u/762626?v=4","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T20:23:06Z","updated_at":"2018-11-13T20:23:06Z","author_association":"MEMBER","body":"Docs are at https://github.com/rust-lang/cargo/blob/5845464cf92a348f95dc6b43133c017c37fcb684/src/doc/src/reference/unstable.md#rename-dependency\r\n\r\nFrom the issue it doesn't look like there is anything left to do except remove the feature gate and move the docs.\r\n\r\nSummary of the feature (please correct me if I'm wrong): allows adding a `package = \"name\"` key to a dependency (`foo = { package = \"name\" }`)which causes that dependency to be 'known by Cargo' (e.g., for download from crates.io and when referred to by other deps) by `name`, but known to rustc by the dependency name (e.g., `foo`).\r\n\r\nMotivation for doing this now is that it allows users to rename crates without using `extern crate` and so helps with the 2018 edition. (We had wanted to uplift this to beta so it makes the edition, so consider a vote for stabilisation here to be a vote for 'stabilising and uplifting to beta').\r\n\r\nAFAIK, there are no open questions.\r\n\r\n(An obvious alternative would be to use the package name as the dependency name and add a `rename` key to the dep for use in rustc. Was this discussed?)"}}
{"actor":{"display_login":"nrc"}}