{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/785","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/785/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/785/events","html_url":"https://github.com/rust-lang/cargo/issues/785","id":47381911,"number":785,"title":"Place artifacts of the default target into a subdirectory of ./target","user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-10-31T10:55:45Z","updated_at":"2015-03-06T20:19:01Z","closed_at":"2015-03-06T20:19:01Z","body":"We currently have `cargo build` putting things in `./target` and `cargo build --release` putting them in `./target/release`. This [leads to confusion](http://www.reddit.com/r/rust/comments/2kp1di/presenting_rustimage_v01/clo0mxc?context=3), and could be improved by instead building everything to a subdirectory, e.g. `./target/debug` for the default target.\r\n\r\n(It occurs to me that the current scheme could fail catastrophically if a binary was called `release`.)"}}