{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1259","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1259/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1259/events","html_url":"https://github.com/rust-lang/cargo/issues/1259","id":56172328,"number":1259,"title":"Rebuilds when compiled with `--feature x` if it was compiled without features before","user":{"login":"phil-opp","id":1131315,"avatar_url":"https://avatars.githubusercontent.com/u/1131315?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-opp","html_url":"https://github.com/phil-opp","followers_url":"https://api.github.com/users/phil-opp/followers","following_url":"https://api.github.com/users/phil-opp/following{/other_user}","gists_url":"https://api.github.com/users/phil-opp/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-opp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-opp/subscriptions","organizations_url":"https://api.github.com/users/phil-opp/orgs","repos_url":"https://api.github.com/users/phil-opp/repos","events_url":"https://api.github.com/users/phil-opp/events{/privacy}","received_events_url":"https://api.github.com/users/phil-opp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-01T18:26:10Z","updated_at":"2015-02-04T23:12:18Z","closed_at":"2015-02-04T23:12:18Z","body":"I'm using liballoc with `--features external_crate` (in a custom cargo package that links to the rust sources) and have the following problem: \r\n\r\nWhen I switch features (compile it with `--features external_crate` and then without it or the other way around) it rebuilds `alloc` _everytime_ when I compile it in the future (for both `cargo build` and `cargo build --features external_crate`). It's dependencies are correctly recognized as unchanged, but the fingerprint of `alloc` changes everytime. \r\n\r\nRunning `cargo clean` and sticking to _one_ feature fixes it temporary (fingerprint stays the same) but once you choose another feature it occurs again and you have to run `cargo clean` again.\r\n\r\nSomehow (I dont't know how I switched features…) this problem occured as well when compiling libs that depend on `alloc` and causes a rebuild of the whole dependency chain. Running `cargo clean` fixes it fortunately but only for the current crate.\r\n\r\nVersions:\r\n\r\n    rustc 1.0.0-nightly (1d00c545e 2015-01-30 19:56:34 +0000)\r\n    cargo 0.0.1-pre-nightly (2b9a3d6 2015-01-30 02:47:30 +0000)\r\n    64bit linux\r\n\r\n\r\n"}}