{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/1622","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/1622/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/1622/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/1622/events","html_url":"https://github.com/rust-lang/cargo/issues/1622","id":77350971,"number":1622,"title":"`cargo:rustc-cfg` and rustdoc","user":{"login":"dgrunwald","id":243140,"avatar_url":"https://avatars.githubusercontent.com/u/243140?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrunwald","html_url":"https://github.com/dgrunwald","followers_url":"https://api.github.com/users/dgrunwald/followers","following_url":"https://api.github.com/users/dgrunwald/following{/other_user}","gists_url":"https://api.github.com/users/dgrunwald/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrunwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrunwald/subscriptions","organizations_url":"https://api.github.com/users/dgrunwald/orgs","repos_url":"https://api.github.com/users/dgrunwald/repos","events_url":"https://api.github.com/users/dgrunwald/events{/privacy}","received_events_url":"https://api.github.com/users/dgrunwald/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/cargo/labels/C-doc","name":"C-doc","color":"5319e7"},{"url":"https://api.github.com/repos/rust-lang/cargo/labels/E-easy","name":"E-easy","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-17T17:13:20Z","updated_at":"2015-06-16T21:53:08Z","closed_at":null,"body":"I have a library that uses a build script with `cargo:rustc-cfg` to pass cfg options depending on the configuration of system libraries.\r\n\r\nHowever, when running `cargo doc`, cargo does not pass any cfg options to rustdoc, causing my build to fail. Cargo should pass `rustc-cfg` options to rustdoc, or alternatively, allow build scripts to use `cargo:rustdoc-cfg`."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/112579051","html_url":"https://github.com/rust-lang/cargo/issues/1622#issuecomment-112579051","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/1622","id":112579051,"user":{"login":"IvanUkhov","id":57440,"avatar_url":"https://avatars.githubusercontent.com/u/57440?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanUkhov","html_url":"https://github.com/IvanUkhov","followers_url":"https://api.github.com/users/IvanUkhov/followers","following_url":"https://api.github.com/users/IvanUkhov/following{/other_user}","gists_url":"https://api.github.com/users/IvanUkhov/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanUkhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanUkhov/subscriptions","organizations_url":"https://api.github.com/users/IvanUkhov/orgs","repos_url":"https://api.github.com/users/IvanUkhov/repos","events_url":"https://api.github.com/users/IvanUkhov/events{/privacy}","received_events_url":"https://api.github.com/users/IvanUkhov/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T21:53:08Z","updated_at":"2015-06-16T21:53:08Z","body":"I’d like to put my two cents in. I use `build.rs` to enable additional features via `rustc-cfg`, and the documentation is generated on a machine that supports all the features. However, since `rustc-cfg` doesn’t reach `rustc`, the resulting documentation ends up being a bit incomplete."}}