{"action":"created","issue":{"url":"https://api.github.com/repos/hansihe/Rustler/issues/24","repository_url":"https://api.github.com/repos/hansihe/Rustler","labels_url":"https://api.github.com/repos/hansihe/Rustler/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/hansihe/Rustler/issues/24/comments","events_url":"https://api.github.com/repos/hansihe/Rustler/issues/24/events","html_url":"https://github.com/hansihe/Rustler/issues/24","id":183206474,"number":24,"title":"Unable to cargo build rustler","user":{"login":"korczis","id":373331,"avatar_url":"https://avatars.githubusercontent.com/u/373331?v=3","gravatar_id":"","url":"https://api.github.com/users/korczis","html_url":"https://github.com/korczis","followers_url":"https://api.github.com/users/korczis/followers","following_url":"https://api.github.com/users/korczis/following{/other_user}","gists_url":"https://api.github.com/users/korczis/gists{/gist_id}","starred_url":"https://api.github.com/users/korczis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korczis/subscriptions","organizations_url":"https://api.github.com/users/korczis/orgs","repos_url":"https://api.github.com/users/korczis/repos","events_url":"https://api.github.com/users/korczis/events{/privacy}","received_events_url":"https://api.github.com/users/korczis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-10-15T12:12:02Z","updated_at":"2016-10-18T18:04:26Z","closed_at":null,"body":"Hi,\r\nRustler seems to be very promising but unfortunately I am not able to compile it.\r\n\r\nOS: Mac OS X siera \r\nRust Version: 1.12.0.\r\n\r\nThe error I am getting is:\r\n\r\n```\r\n$ cargo build\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n   Compiling easy-plugin-plugins v0.9.1\r\nerror: no method named `pat_enum` found for type `&mut syntax::ext::base::ExtCtxt<'_>` in the current scope\r\n   --> /Users/tomaskorcak/dev/microcrawler/gauc-elixir/native/gauc/target/debug/build/easy-plugin-plugins-64578d19b8e93d12/out/lib.rs:624:23\r\n    |\r\n624 |     let pat = context.pat_enum(span, path, pats);\r\n    |                       ^^^^^^^^\r\n/Users/tomaskorcak/.cargo/registry/src/github.com-1ecc6299db9ec823/easy-plugin-plugins-0.9.1/src/lib.rs:36:1: 36:47 note: in this expansion of include!\r\n\r\nerror: aborting due to previous error\r\n\r\nerror: Could not compile `easy-plugin-plugins`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```"},"comment":{"url":"https://api.github.com/repos/hansihe/Rustler/issues/comments/254589805","html_url":"https://github.com/hansihe/Rustler/issues/24#issuecomment-254589805","issue_url":"https://api.github.com/repos/hansihe/Rustler/issues/24","id":254589805,"user":{"login":"korczis","id":373331,"avatar_url":"https://avatars.githubusercontent.com/u/373331?v=3","gravatar_id":"","url":"https://api.github.com/users/korczis","html_url":"https://github.com/korczis","followers_url":"https://api.github.com/users/korczis/followers","following_url":"https://api.github.com/users/korczis/following{/other_user}","gists_url":"https://api.github.com/users/korczis/gists{/gist_id}","starred_url":"https://api.github.com/users/korczis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korczis/subscriptions","organizations_url":"https://api.github.com/users/korczis/orgs","repos_url":"https://api.github.com/users/korczis/repos","events_url":"https://api.github.com/users/korczis/events{/privacy}","received_events_url":"https://api.github.com/users/korczis/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T18:04:26Z","updated_at":"2016-10-18T18:04:26Z","body":"Yop. I made it working finally, both linux and mac.\r\n\r\n***build.rs**\r\n```\r\n#![feature(link_args)]\r\n#[cfg(any(target_os = \"mac\"))]\r\n#[link_args = \"-flat_namespace -undefined suppress\"]\r\nextern {}\r\n\r\n#[cfg(feature = \"with-syntex\")]\r\nmod inner {\r\n    extern crate rustler_codegen;\r\n\r\n    use std::env;\r\n    use std::path::Path;\r\n\r\n    pub fn main() {\r\n        let out_dir = env::var_os(\"OUT_DIR\").unwrap();\r\n\r\n        let src = Path::new(\"src/lib.rs.in\");\r\n        let dst = Path::new(&out_dir).join(\"lib.rs\");\r\n\r\n        rustler_codegen::expand(&src, &dst).unwrap();\r\n    }\r\n}\r\n\r\n#[cfg(not(feature = \"with-syntex\"))]\r\nmod inner {\r\n    pub fn main() {}\r\n}\r\n\r\nfn main() {\r\n    inner::main();\r\n}\r\n```"}}
{"actor":{"display_login":"korczis"}}