{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/27","repository_url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs","labels_url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/27/comments","events_url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/27/events","html_url":"https://github.com/rust-lang-nursery/lazy-static.rs/pull/27","id":118648779,"number":27,"title":"Use feature cfg outside macro","user":{"login":"dschatzberg","id":165988,"avatar_url":"https://avatars.githubusercontent.com/u/165988?v=3","gravatar_id":"","url":"https://api.github.com/users/dschatzberg","html_url":"https://github.com/dschatzberg","followers_url":"https://api.github.com/users/dschatzberg/followers","following_url":"https://api.github.com/users/dschatzberg/following{/other_user}","gists_url":"https://api.github.com/users/dschatzberg/gists{/gist_id}","starred_url":"https://api.github.com/users/dschatzberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschatzberg/subscriptions","organizations_url":"https://api.github.com/users/dschatzberg/orgs","repos_url":"https://api.github.com/users/dschatzberg/repos","events_url":"https://api.github.com/users/dschatzberg/events{/privacy}","received_events_url":"https://api.github.com/users/dschatzberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-24T16:32:23Z","updated_at":"2016-02-08T20:56:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/pulls/27","html_url":"https://github.com/rust-lang-nursery/lazy-static.rs/pull/27","diff_url":"https://github.com/rust-lang-nursery/lazy-static.rs/pull/27.diff","patch_url":"https://github.com/rust-lang-nursery/lazy-static.rs/pull/27.patch"},"body":"cfg(feature=\"nightly\") was being evaluated within the crate using the\r\nlazy_static! macro. Instead we generate different macros depending on\r\nthe cfg."},"comment":{"url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/comments/181564633","html_url":"https://github.com/rust-lang-nursery/lazy-static.rs/pull/27#issuecomment-181564633","issue_url":"https://api.github.com/repos/rust-lang-nursery/lazy-static.rs/issues/27","id":181564633,"user":{"login":"durka","id":47007,"avatar_url":"https://avatars.githubusercontent.com/u/47007?v=3","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T20:56:15Z","updated_at":"2016-02-08T20:56:15Z","body":"@compressed actually you can do that:\r\n\r\n```toml\r\n[dependencies]\r\nlazy_static = \"*\"\r\n\r\n[features]\r\nnightly = [\"lazy_static/nightly\"]\r\n```\r\n\r\nDocumented [here](http://doc.crates.io/manifest.html#the-features-section) but only in the code sample."}}