{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/2469","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/2469/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/2469/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/2469/events","html_url":"https://github.com/rust-lang/cargo/pull/2469","id":140247955,"number":2469,"title":"Fix harness in lib section","user":{"login":"TheNeikos","id":1631166,"avatar_url":"https://avatars.githubusercontent.com/u/1631166?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNeikos","html_url":"https://github.com/TheNeikos","followers_url":"https://api.github.com/users/TheNeikos/followers","following_url":"https://api.github.com/users/TheNeikos/following{/other_user}","gists_url":"https://api.github.com/users/TheNeikos/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNeikos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNeikos/subscriptions","organizations_url":"https://api.github.com/users/TheNeikos/orgs","repos_url":"https://api.github.com/users/TheNeikos/repos","events_url":"https://api.github.com/users/TheNeikos/events{/privacy}","received_events_url":"https://api.github.com/users/TheNeikos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-11T17:43:03Z","updated_at":"2016-03-11T19:51:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/cargo/pulls/2469","html_url":"https://github.com/rust-lang/cargo/pull/2469","diff_url":"https://github.com/rust-lang/cargo/pull/2469.diff","patch_url":"https://github.com/rust-lang/cargo/pull/2469.patch"},"body":"closes #2305 "},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/195520175","html_url":"https://github.com/rust-lang/cargo/pull/2469#issuecomment-195520175","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/2469","id":195520175,"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":"2016-03-11T19:51:00Z","updated_at":"2016-03-11T19:51:00Z","body":"Thanks! You should be able to add a test with a `harness = false` and then something like:\r\n\r\n```rust\r\n#[cfg(test)]\r\nfn main() {\r\n}\r\n```\r\n\r\n(that'll fail to compile if `#[cfg(test)]` isn't passed)"}}