{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2183","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2183/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2183/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2183/events","html_url":"https://github.com/rust-lang/cargo/issues/2183","id":119494103,"number":2183,"title":"Can you preserve comments in ~/.cargo/config?","user":{"login":"lilydjwg","id":440661,"avatar_url":"https://avatars.githubusercontent.com/u/440661?v=3","gravatar_id":"","url":"https://api.github.com/users/lilydjwg","html_url":"https://github.com/lilydjwg","followers_url":"https://api.github.com/users/lilydjwg/followers","following_url":"https://api.github.com/users/lilydjwg/following{/other_user}","gists_url":"https://api.github.com/users/lilydjwg/gists{/gist_id}","starred_url":"https://api.github.com/users/lilydjwg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilydjwg/subscriptions","organizations_url":"https://api.github.com/users/lilydjwg/orgs","repos_url":"https://api.github.com/users/lilydjwg/repos","events_url":"https://api.github.com/users/lilydjwg/events{/privacy}","received_events_url":"https://api.github.com/users/lilydjwg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/cargo/labels/I-wrong","name":"I-wrong","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T13:43:36Z","updated_at":"2015-11-30T20:12:59Z","closed_at":null,"body":"Today I did a `cargo login`, my `~/.cargo/config` was updated, but none of the comments were left.\r\n\r\nThe config file currently is small, little to comment, but I've lost my vim modeline. If I had some config entries commented out, or some links / explanations, they would be lost too. So, can you preserve them?"},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/160746369","html_url":"https://github.com/rust-lang/cargo/issues/2183#issuecomment-160746369","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2183","id":160746369,"user":{"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},"created_at":"2015-11-30T20:12:59Z","updated_at":"2015-11-30T20:12:59Z","body":"Yeah this is an unfortunate part of `toml-rs` right now in that it's parsed TOML representation doesn't preserve comments and such. I'd definitely like to support this, and I know other subcommands would as well!"}}