{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1422","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1422/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1422/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1422/events","html_url":"https://github.com/rust-lang/cargo/issues/1422","id":61899096,"number":1422,"title":"Option for whether `lib.rs` should be rebuilt after build.rs is rerun","user":{"login":"daboross","id":1152146,"avatar_url":"https://avatars.githubusercontent.com/u/1152146?v=3","gravatar_id":"","url":"https://api.github.com/users/daboross","html_url":"https://github.com/daboross","followers_url":"https://api.github.com/users/daboross/followers","following_url":"https://api.github.com/users/daboross/following{/other_user}","gists_url":"https://api.github.com/users/daboross/gists{/gist_id}","starred_url":"https://api.github.com/users/daboross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daboross/subscriptions","organizations_url":"https://api.github.com/users/daboross/orgs","repos_url":"https://api.github.com/users/daboross/repos","events_url":"https://api.github.com/users/daboross/events{/privacy}","received_events_url":"https://api.github.com/users/daboross/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-15T21:01:35Z","updated_at":"2015-03-16T13:25:40Z","closed_at":"2015-03-16T13:25:40Z","body":"Currently, whenever `build.rs` is re-run, both `lib.rs` *and* `main.rs` get rebuilt. It would be useful if there were some option to only rebuild `main.rs` after `build.rs` is rerun, not both. This wouldn't want to be the default behaviour, as most build scripts will affect content in `lib.rs`, but some will only affect `main.rs`, and an option for that would be nice.\r\n\r\nThis isn't that urgent, and it may not actually want to be built, but it would probably be useful.\r\n\r\nThis would probably depend on https://github.com/rust-lang/cargo/issues/1162."}}