{"action":"created","issue":{"url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/86","repository_url":"https://api.github.com/repos/Diggsey/multirust-rs","labels_url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/86/comments","events_url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/86/events","html_url":"https://github.com/Diggsey/multirust-rs/issues/86","id":139197779,"number":86,"title":"Change `CARGO_TARGET_DIR` based on toolchain","user":{"login":"DanielKeep","id":77238,"avatar_url":"https://avatars.githubusercontent.com/u/77238?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielKeep","html_url":"https://github.com/DanielKeep","followers_url":"https://api.github.com/users/DanielKeep/followers","following_url":"https://api.github.com/users/DanielKeep/following{/other_user}","gists_url":"https://api.github.com/users/DanielKeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielKeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielKeep/subscriptions","organizations_url":"https://api.github.com/users/DanielKeep/orgs","repos_url":"https://api.github.com/users/DanielKeep/repos","events_url":"https://api.github.com/users/DanielKeep/events{/privacy}","received_events_url":"https://api.github.com/users/DanielKeep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-08T07:02:27Z","updated_at":"2016-03-09T02:31:19Z","closed_at":null,"body":"Switching between toolchains with Multirust causes a lot of cache thrashing as Cargo removes and recompiles artifacts.\r\n\r\nIt would be nice if there was an option to have Multirust's `cargo` proxy automatically redefine the `CARGO_TARGET_DIR` environment variable so that instead of every toolchain's Cargo trying to output to `$PKGDIR/target`, they instead output to `$PKGDIR/target/$TOOLCHAIN`.  This would make, for example, testing across multiple Rust versions and/or toolchains (*i.e.* GNU *vs.* MSVC) *much* easier."},"comment":{"url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/comments/194077026","html_url":"https://github.com/Diggsey/multirust-rs/issues/86#issuecomment-194077026","issue_url":"https://api.github.com/repos/Diggsey/multirust-rs/issues/86","id":194077026,"user":{"login":"DanielKeep","id":77238,"avatar_url":"https://avatars.githubusercontent.com/u/77238?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielKeep","html_url":"https://github.com/DanielKeep","followers_url":"https://api.github.com/users/DanielKeep/followers","following_url":"https://api.github.com/users/DanielKeep/following{/other_user}","gists_url":"https://api.github.com/users/DanielKeep/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielKeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielKeep/subscriptions","organizations_url":"https://api.github.com/users/DanielKeep/orgs","repos_url":"https://api.github.com/users/DanielKeep/repos","events_url":"https://api.github.com/users/DanielKeep/events{/privacy}","received_events_url":"https://api.github.com/users/DanielKeep/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T02:31:19Z","updated_at":"2016-03-09T02:31:19Z","body":"I'd personally be content with a directory-specific override that let me switch this on."}}