{"action":"created","issue":{"url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/201","labels_url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/201/comments","events_url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/201/events","html_url":"https://github.com/crabtw/rust-bindgen/issues/201","id":71085530,"number":201,"title":"error: macro undefined: 'bindgen!' with github rust","user":{"login":"MichaelRiss","id":3259177,"avatar_url":"https://avatars.githubusercontent.com/u/3259177?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelRiss","html_url":"https://github.com/MichaelRiss","followers_url":"https://api.github.com/users/MichaelRiss/followers","following_url":"https://api.github.com/users/MichaelRiss/following{/other_user}","gists_url":"https://api.github.com/users/MichaelRiss/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelRiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelRiss/subscriptions","organizations_url":"https://api.github.com/users/MichaelRiss/orgs","repos_url":"https://api.github.com/users/MichaelRiss/repos","events_url":"https://api.github.com/users/MichaelRiss/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelRiss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-26T15:55:15Z","updated_at":"2015-05-10T13:12:49Z","closed_at":null,"body":"I'm using rust from github (https://github.com/rust-lang/rust/commit/d3724342a3ef8eff3473de988f80bc088dc2668d) and when running \"cargo test\" in rust-bindgen (https://github.com/crabtw/rust-bindgen/commit/9628cb08d1d454d2d331db46a10fbd356f444663) I get the following error:\r\n```\r\ntests/test_cmath.rs:2:15: 2:22 error: macro undefined: 'bindgen!'\r\ntests/test_cmath.rs:2 pub mod ffi { bindgen!(\"/usr/include/math.h\", link = \"m\"); }\r\n                                    ^~~~~~~\r\nerror: aborting due to previous error\r\nCould not compile `rust-bindgen`.\r\n```\r\nShouldn't this work? Or did I make a mistake somewhere?"},"comment":{"url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/comments/100639521","html_url":"https://github.com/crabtw/rust-bindgen/issues/201#issuecomment-100639521","issue_url":"https://api.github.com/repos/crabtw/rust-bindgen/issues/201","id":100639521,"user":{"login":"tupshin","id":202062,"avatar_url":"https://avatars.githubusercontent.com/u/202062?v=3","gravatar_id":"","url":"https://api.github.com/users/tupshin","html_url":"https://github.com/tupshin","followers_url":"https://api.github.com/users/tupshin/followers","following_url":"https://api.github.com/users/tupshin/following{/other_user}","gists_url":"https://api.github.com/users/tupshin/gists{/gist_id}","starred_url":"https://api.github.com/users/tupshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tupshin/subscriptions","organizations_url":"https://api.github.com/users/tupshin/orgs","repos_url":"https://api.github.com/users/tupshin/repos","events_url":"https://api.github.com/users/tupshin/events{/privacy}","received_events_url":"https://api.github.com/users/tupshin/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T13:12:49Z","updated_at":"2015-05-10T13:12:49Z","body":"A working example of this would be greatly appreciated. I don't see any existing project that has working use of bindgen as a macro. Would be a killer feature."}}