{"action":"created","issue":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/309","repository_url":"https://api.github.com/repos/rustwasm/wasm-bindgen","labels_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/309/comments","events_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/309/events","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/309","id":335437342,"node_id":"MDU6SXNzdWUzMzU0MzczNDI=","number":309,"title":"\"Module doesn't have export __wbindgen_describe___wbg_f_alert_alert_n\"","user":{"login":"steveklabnik","id":27786,"node_id":"MDQ6VXNlcjI3Nzg2","avatar_url":"https://avatars2.githubusercontent.com/u/27786?v=4","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/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":5,"created_at":"2018-06-25T14:41:31Z","updated_at":"2018-06-28T20:03:04Z","closed_at":null,"author_association":"NONE","body":"Code:\r\n\r\n```shell\r\n> cat .\\src\\lib.rs\r\n#![feature(proc_macro, wasm_import_module, wasm_custom_section)]\r\n\r\nextern crate wasm_bindgen;\r\n\r\nuse wasm_bindgen::prelude::*;\r\n\r\n#[wasm_bindgen]\r\nextern {\r\n    fn alert(s: &str);\r\n}\r\n\r\n#[wasm_bindgen]\r\npub fn greet(name: &str) {\r\n    alert(&format!(\"Hello, {}!\", name));\r\n}\r\n```\r\n\r\nCargo.toml:\r\n\r\n```toml\r\n[package]\r\nname = \"wasmpacktest\"\r\nversion = \"0.1.0\"\r\nauthors = [\"steveklabnik <steve@steveklabnik.com>\"]\r\n\r\n[lib]\r\ncrate-type = [\"cdylib\"]\r\n\r\n[dependencies]\r\nwasm-bindgen = \"0.2\"\r\n```\r\n\r\nWhen I invoke wasm-bindgen through wasm-pack...:\r\n\r\n```shell\r\n> wasm-pack init\r\n\r\n  [1/8] Checking crate configuration...\r\n  [2/8] Adding WASM target...\r\n  [3/8] Compiling to WASM...\r\n  [4/8] Creating a pkg directory...\r\n  [5/8] Writing a package.json...\r\n  :-) [WARN]: Field description is missing from Cargo.toml. It is not necessary, but recommended\r\n  :-) [WARN]: Field repository is missing from Cargo.toml. It is not necessary, but recommended\r\n  :-) [WARN]: Field license is missing from Cargo.toml. It is not necessary, but recommended\r\n  [6/8] Copying over your README...\r\n  :-) [WARN]: origin crate has no README\r\n  [7/8] Installing WASM-bindgen...\r\n| [8/8] Running WASM-bindgen...\r\nwasm-bindgen failed to execute properly. stderr:\r\n\r\nthread 'main' panicked at 'failed to run export: Function(\"Module doesn\\'t have export __wbindgen_describe___wbg_f_alert_alert_n\")', libcore\\result.rs:945:5\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\nrustc version:\r\n\r\n```shell\r\n> rustc --version\r\nrustc 1.28.0-nightly (01cc982e9 2018-06-24)\r\n```\r\n\r\nAny ideas what's wrong here?"},"comment":{"url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/comments/401156013","html_url":"https://github.com/rustwasm/wasm-bindgen/issues/309#issuecomment-401156013","issue_url":"https://api.github.com/repos/rustwasm/wasm-bindgen/issues/309","id":401156013,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTE1NjAxMw==","user":{"login":"alexcrichton","id":64996,"node_id":"MDQ6VXNlcjY0OTk2","avatar_url":"https://avatars1.githubusercontent.com/u/64996?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T20:03:04Z","updated_at":"2018-06-28T20:03:04Z","author_association":"COLLABORATOR","body":"@turboladen I think that issue is https://github.com/rustwasm/wasm-bindgen/issues/201"}}
{"actor":{"display_login":"alexcrichton"}}