{"action":"created","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/612","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/612/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/612/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/612","id":347128367,"node_id":"MDU6SXNzdWUzNDcxMjgzNjc=","number":612,"title":"wasm-bindgen 0.2.15 fails to produce JS bindings","user":{"login":"roddyaj","id":25181468,"node_id":"MDQ6VXNlcjI1MTgxNDY4","avatar_url":"https://avatars2.githubusercontent.com/u/25181468?v=4","gravatar_id":"","url":"https://api.github.com/users/roddyaj","html_url":"https://github.com/roddyaj","followers_url":"https://api.github.com/users/roddyaj/followers","following_url":"https://api.github.com/users/roddyaj/following{/other_user}","gists_url":"https://api.github.com/users/roddyaj/gists{/gist_id}","starred_url":"https://api.github.com/users/roddyaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roddyaj/subscriptions","organizations_url":"https://api.github.com/users/roddyaj/orgs","repos_url":"https://api.github.com/users/roddyaj/repos","events_url":"https://api.github.com/users/roddyaj/events{/privacy}","received_events_url":"https://api.github.com/users/roddyaj/received_events","type":"User","site_admin":false},"labels":[{"id":782247497,"node_id":"MDU6TGFiZWw3ODIyNDc0OTc=","url":"https://api.github.com/repos/rustwasm/wasm-bindgen/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-02T18:39:57Z","updated_at":"2018-08-02T18:52:10Z","closed_at":null,"author_association":"NONE","body":"wasm-bindgen 0.2.14 works fine, but switching to 0.2.15 produces no Javascript bindings.  The following is a simplified example:\r\n\r\nCargo.toml:\r\n```\r\n[package]\r\nname = \"rust_bucket\"\r\nversion = \"0.1.0\"\r\nauthors = [\"Adam Roddy <aroddy@mail.com>\"]\r\n\r\n[lib]\r\ncrate-type = [\"cdylib\"]\r\n\r\n[dependencies]\r\nwasm-bindgen = \"=0.2.15\"\r\n```\r\n\r\nsrc/lib.rs:\r\n```\r\n#![feature(wasm_custom_section, wasm_import_module, use_extern_macros)]\r\n\r\nextern crate wasm_bindgen;\r\n\r\nuse wasm_bindgen::prelude::*;\r\n\r\n#[wasm_bindgen]\r\npub fn do_nothing() {}\r\n```\r\n\r\nI'm building with: `cargo +nightly build --release --target wasm32-unknown-unknown && wasm-bindgen target/wasm32-unknown-unknown/release/rust_bucket.wasm --out-dir target`\r\n\r\nWith wasm-bindgen = \"=0.2.14\" I get target/rust_bucket.js that contains the function as expected:\r\n```\r\nimport * as wasm from './rust_bucket_bg';\r\n\r\n/**\r\n* @returns {void}\r\n*/\r\nexport function do_nothing() {\r\n    return wasm.do_nothing();\r\n}\r\n```\r\n\r\nWith wasm-bindgen = \"=0.2.15\" I get target/rust_bucket.js:\r\n```\r\n/* tslint:disable */\r\n```\r\nThat's the whole file.  Note there is no binding function."},"comment":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/comments/410030947","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/612#issuecomment-410030947","issue_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/612","id":410030947,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDAzMDk0Nw==","user":{"login":"roddyaj","id":25181468,"node_id":"MDQ6VXNlcjI1MTgxNDY4","avatar_url":"https://avatars2.githubusercontent.com/u/25181468?v=4","gravatar_id":"","url":"https://api.github.com/users/roddyaj","html_url":"https://github.com/roddyaj","followers_url":"https://api.github.com/users/roddyaj/followers","following_url":"https://api.github.com/users/roddyaj/following{/other_user}","gists_url":"https://api.github.com/users/roddyaj/gists{/gist_id}","starred_url":"https://api.github.com/users/roddyaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roddyaj/subscriptions","organizations_url":"https://api.github.com/users/roddyaj/orgs","repos_url":"https://api.github.com/users/roddyaj/repos","events_url":"https://api.github.com/users/roddyaj/events{/privacy}","received_events_url":"https://api.github.com/users/roddyaj/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T18:52:10Z","updated_at":"2018-08-02T18:52:10Z","author_association":"NONE","body":"I ran `rustup update nightly` and I'm on 1.29.0-nightly.  I've now removed wasm_custom_section, wasm_import_module features.  I still see the error.  I am, however, on wasm-bindgen 0.2.14 according to `wasm-bindgen --version` (even after I run `cargo update -p wasm-bindgen`)."}}
{"actor":{"display_login":"roddyaj"}}