{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2127","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2127/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2127/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2127/events","html_url":"https://github.com/rust-lang/cargo/pull/2127","id":115851532,"number":2127,"title":"Make Cargo XDG-compliant (on non-Windows systems)","user":{"login":"tbu-","id":6666593,"avatar_url":"https://avatars.githubusercontent.com/u/6666593?v=3","gravatar_id":"","url":"https://api.github.com/users/tbu-","html_url":"https://github.com/tbu-","followers_url":"https://api.github.com/users/tbu-/followers","following_url":"https://api.github.com/users/tbu-/following{/other_user}","gists_url":"https://api.github.com/users/tbu-/gists{/gist_id}","starred_url":"https://api.github.com/users/tbu-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbu-/subscriptions","organizations_url":"https://api.github.com/users/tbu-/orgs","repos_url":"https://api.github.com/users/tbu-/repos","events_url":"https://api.github.com/users/tbu-/events{/privacy}","received_events_url":"https://api.github.com/users/tbu-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","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},"milestone":null,"comments":26,"created_at":"2015-11-09T10:49:33Z","updated_at":"2015-12-04T23:21:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/2127","html_url":"https://github.com/rust-lang/cargo/pull/2127","diff_url":"https://github.com/rust-lang/cargo/pull/2127.diff","patch_url":"https://github.com/rust-lang/cargo/pull/2127.patch"},"body":"http://standards.freedesktop.org/basedir-spec/basedir-spec-0.8.html\r\nhttp://www.freedesktop.org/software/systemd/man/file-hierarchy.html\r\n\r\nStrategy for backward-compatiblity:\r\n\r\nWhen checking for the relevant cargo directories, check in the following\r\norder of preference:\r\n\r\n1) Use the environment variable `CARGO_HOME`.\r\n2) Use the XDG directories if they exist.\r\n3) Use the legacy location (~/.cargo) if it exists.\r\n4) Fall back the XDG directories if everything else fails.\r\n\r\nFixes #1734."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/162108317","html_url":"https://github.com/rust-lang/cargo/pull/2127#issuecomment-162108317","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2127","id":162108317,"user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T23:21:03Z","updated_at":"2015-12-04T23:21:03Z","body":"@bluss Ah. On a desktop I do have those directories. On my headless machine only `~/.cache` exists with only one file in it."}}