Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not compile js-sys #2020

Closed
abhisunkewar opened this issue Mar 29, 2021 · 3 comments · Fixed by #2023
Closed

error: could not compile js-sys #2020

abhisunkewar opened this issue Mar 29, 2021 · 3 comments · Fixed by #2023

Comments

@abhisunkewar
Copy link

I'm using libp2p v0.36.0 and the project fails to compile.

Here's the trackback

Compiling libp2p-pnet v0.20.0
   Compiling multistream-select v0.10.2
   Compiling parity-multiaddr v0.11.2
   Compiling async-global-executor v2.0.2
   Compiling wasm-bindgen-macro v0.2.72
   Compiling async-std v1.9.0
   Compiling js-sys v0.3.49
error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:639:39
    |
639 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:649:39
    |
649 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:660:39
    |
660 |         #[wasm_bindgen(js_namespace = Atomics, catch, js_name = compareExchange)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:674:39
    |
674 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:683:39
    |
683 |         #[wasm_bindgen(js_namespace = Atomics, js_name = isLockFree)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:690:39
    |
690 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:699:39
    |
699 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:703:39
    |
703 |         #[wasm_bindgen(js_namespace = Atomics, catch, js_name = notify)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:716:39
    |
716 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:723:39
    |
723 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:732:39
    |
732 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:743:39
    |
743 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:749:39
    |
749 |         #[wasm_bindgen(js_namespace = Atomics, catch, js_name = wait)]
    |                                       ^^^^^^^

error: expected `,`
   --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:764:39
    |
764 |         #[wasm_bindgen(js_namespace = Atomics, catch)]
    |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1576:39
     |
1576 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1584:39
     |
1584 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1592:39
     |
1592 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1600:39
     |
1600 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1607:39
     |
1607 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1613:39
     |
1613 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1620:39
     |
1620 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1628:39
     |
1628 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1635:39
     |
1635 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1642:39
     |
1642 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1649:39
     |
1649 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1656:39
     |
1656 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1663:39
     |
1663 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1670:39
     |
1670 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1677:39
     |
1677 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1684:39
     |
1684 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1691:39
     |
1691 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1697:39
     |
1697 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1704:39
     |
1704 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1711:39
     |
1711 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1717:39
     |
1717 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1722:39
     |
1722 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1728:39
     |
1728 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1734:39
     |
1734 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1740:39
     |
1740 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1746:39
     |
1746 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1756:39
     |
1756 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1762:39
     |
1762 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1769:39
     |
1769 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1775:39
     |
1775 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1782:39
     |
1782 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1789:39
     |
1789 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1795:39
     |
1795 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1802:39
     |
1802 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1809:39
     |
1809 |         #[wasm_bindgen(js_namespace = Math)]
     |                                       ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2765:39
     |
2765 |         #[wasm_bindgen(js_namespace = Reflect, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2777:39
     |
2777 |         #[wasm_bindgen(js_namespace = Reflect, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2785:39
     |
2785 |         #[wasm_bindgen(js_namespace = Reflect, js_name = construct, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2796:39
     |
2796 |         #[wasm_bindgen(js_namespace = Reflect, js_name = defineProperty, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2807:39
     |
2807 |         #[wasm_bindgen(js_namespace = Reflect, js_name = deleteProperty, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2814:39
     |
2814 |         #[wasm_bindgen(js_namespace = Reflect, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2819:39
     |
2819 |         #[wasm_bindgen(js_namespace = Reflect, js_name = "get", catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2824:39
     |
2824 |         #[wasm_bindgen(js_namespace = Reflect, js_name = "get", catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2832:39
     |
2832 |         #[wasm_bindgen(js_namespace = Reflect, js_name = getOwnPropertyDescriptor, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2844:39
     |
2844 |         #[wasm_bindgen(js_namespace = Reflect, js_name = getPrototypeOf, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2851:39
     |
2851 |         #[wasm_bindgen(js_namespace = Reflect, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2859:39
     |
2859 |         #[wasm_bindgen(js_namespace = Reflect, js_name = isExtensible, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2866:39
     |
2866 |         #[wasm_bindgen(js_namespace = Reflect, js_name = ownKeys, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2875:39
     |
2875 |         #[wasm_bindgen(js_namespace = Reflect, js_name = preventExtensions, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2882:39
     |
2882 |         #[wasm_bindgen(js_namespace = Reflect, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2891:39
     |
2891 |         #[wasm_bindgen(js_namespace = Reflect, js_name = "set", catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2900:39
     |
2900 |         #[wasm_bindgen(js_namespace = Reflect, js_name = "set", catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2911:39
     |
2911 |         #[wasm_bindgen(js_namespace = Reflect, js_name = set, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:2925:39
     |
2925 |         #[wasm_bindgen(js_namespace = Reflect, js_name = setPrototypeOf, catch)]
     |                                       ^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3342:39
     |
3342 |         #[wasm_bindgen(js_namespace = WebAssembly)]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3349:39
     |
3349 |         #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiate)]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3356:39
     |
3356 |         #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiate)]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3365:39
     |
3365 |         #[wasm_bindgen(js_namespace = WebAssembly, js_name = instantiateStreaming)]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3373:39
     |
3373 |         #[wasm_bindgen(js_namespace = WebAssembly, catch)]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3385:56
     |
3385 |         #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.CompileError")]
     |                                                        ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3394:52
     |
3394 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3407:57
     |
3407 |         #[wasm_bindgen(extends = Object, js_namespace = WebAssembly, typescript_type = "WebAssembly.Instance")]
     |                                                         ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3417:59
     |
3417 |         #[wasm_bindgen(catch, constructor, js_namespace = WebAssembly)]
     |                                                           ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3426:55
     |
3426 |         #[wasm_bindgen(getter, method, js_namespace = WebAssembly)]
     |                                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3438:56
     |
3438 |         #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.LinkError")]
     |                                                        ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3447:52
     |
3447 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3459:56
     |
3459 |         #[wasm_bindgen(extends = Error, js_namespace = WebAssembly, typescript_type = "WebAssembly.RuntimeError")]
     |                                                        ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3468:52
     |
3468 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3480:39
     |
3480 |         #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Module")]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3489:52
     |
3489 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3497:66
     |
3497 |         #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly, js_name = customSections)]
     |                                                                  ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3504:66
     |
3504 |         #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly)]
     |                                                                  ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3511:66
     |
3511 |         #[wasm_bindgen(static_method_of = Module, js_namespace = WebAssembly)]
     |                                                                  ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3522:39
     |
3522 |         #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Table")]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3530:52
     |
3530 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3538:55
     |
3538 |         #[wasm_bindgen(method, getter, js_namespace = WebAssembly)]
     |                                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3545:54
     |
3545 |         #[wasm_bindgen(method, catch, js_namespace = WebAssembly)]
     |                                                      ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3553:54
     |
3553 |         #[wasm_bindgen(method, catch, js_namespace = WebAssembly)]
     |                                                      ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3560:54
     |
3560 |         #[wasm_bindgen(method, catch, js_namespace = WebAssembly)]
     |                                                      ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3568:39
     |
3568 |         #[wasm_bindgen(js_namespace = WebAssembly, extends = Object, typescript_type = "WebAssembly.Memory")]
     |                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3580:52
     |
3580 |         #[wasm_bindgen(constructor, js_namespace = WebAssembly, catch)]
     |                                                    ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3587:55
     |
3587 |         #[wasm_bindgen(method, getter, js_namespace = WebAssembly)]
     |                                                       ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3598:47
     |
3598 |         #[wasm_bindgen(method, js_namespace = WebAssembly)]
     |                                               ^^^^^^^^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3618:46
     |
3618 |         #[wasm_bindgen(catch, js_namespace = JSON)]
     |                                              ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3624:46
     |
3624 |         #[wasm_bindgen(catch, js_namespace = JSON)]
     |                                              ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3636:46
     |
3636 |         #[wasm_bindgen(catch, js_namespace = JSON, js_name = stringify)]
     |                                              ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:3660:46
     |
3660 |         #[wasm_bindgen(catch, js_namespace = JSON, js_name = stringify)]
     |                                              ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4420:70
     |
4420 |         #[wasm_bindgen(js_name = getCanonicalLocales, js_namespace = Intl)]
     |                                                                      ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4431:57
     |
4431 |         #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.Collator")]
     |                                                         ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4439:52
     |
4439 |         #[wasm_bindgen(constructor, js_namespace = Intl)]
     |                                                    ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4455:47
     |
4455 |         #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)]
     |                                               ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4464:68
     |
4464 |         #[wasm_bindgen(static_method_of = Collator, js_namespace = Intl, js_name = supportedLocalesOf)]
     |                                                                    ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4475:57
     |
4475 |         #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.DateTimeFormat")]
     |                                                         ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4483:52
     |
4483 |         #[wasm_bindgen(constructor, js_namespace = Intl)]
     |                                                    ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4506:47
     |
4506 |         #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)]
     |                                               ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4515:74
     |
4515 |         #[wasm_bindgen(static_method_of = DateTimeFormat, js_namespace = Intl, js_name = supportedLocalesOf)]
     |                                                                          ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4526:57
     |
4526 |         #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.NumberFormat")]
     |                                                         ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4534:52
     |
4534 |         #[wasm_bindgen(constructor, js_namespace = Intl)]
     |                                                    ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4557:47
     |
4557 |         #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)]
     |                                               ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4565:72
     |
4565 |         #[wasm_bindgen(static_method_of = NumberFormat, js_namespace = Intl, js_name = supportedLocalesOf)]
     |                                                                        ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4576:57
     |
4576 |         #[wasm_bindgen(extends = Object, js_namespace = Intl, typescript_type = "Intl.PluralRules")]
     |                                                         ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4584:52
     |
4584 |         #[wasm_bindgen(constructor, js_namespace = Intl)]
     |                                                    ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4592:47
     |
4592 |         #[wasm_bindgen(method, js_namespace = Intl, js_name = resolvedOptions)]
     |                                               ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4599:47
     |
4599 |         #[wasm_bindgen(method, js_namespace = Intl)]
     |                                               ^^^^

error: expected `,`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4607:71
     |
4607 |         #[wasm_bindgen(static_method_of = PluralRules, js_namespace = Intl, js_name = supportedLocalesOf)]
     |                                                                       ^^^^

error[E0425]: cannot find function `get` in module `Reflect`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:1524:28
     |
1524 |     let iter_fn = Reflect::get(val, iter_sym.as_ref())?;
     |                            ^^^ not found in `Reflect`
     |
help: consider importing this function
     |
21   | use std::rt::panic_count::get;
     |

error[E0412]: cannot find type `Memory` in module `WebAssembly`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4933:60
     |
4933 |                   let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                              ^^^^^^ not found in `WebAssembly`
...
5024 | / arrays! {
5025 | |     /// `Int8Array()`
5026 | |     /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array
5027 | |     Int8Array: i8,
...    |
5059 | |     Float64Array: f64,
5060 | | }
     | |_- in this macro invocation
     |
     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Memory` in module `WebAssembly`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4958:60
     |
4958 |                   let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                              ^^^^^^ not found in `WebAssembly`
...
5024 | / arrays! {
5025 | |     /// `Int8Array()`
5026 | |     /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array
5027 | |     Int8Array: i8,
...    |
5059 | |     Float64Array: f64,
5060 | | }
     | |_- in this macro invocation
     |
     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0412]: cannot find type `Memory` in module `WebAssembly`
    --> C:\Users\Abhishek Sunkewar\.cargo\registry\src\jackfan.us.kg-1ecc6299db9ec823\js-sys-0.3.49\src\lib.rs:4968:60
     |
4968 |                   let mem = buf.unchecked_ref::<WebAssembly::Memory>();
     |                                                              ^^^^^^ not found in `WebAssembly`
...
5024 | / arrays! {
5025 | |     /// `Int8Array()`
5026 | |     /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array
5027 | |     Int8Array: i8,
...    |
5059 | |     Float64Array: f64,
5060 | | }
     | |_- in this macro invocation
     |
     = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 123 previous errors

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `js-sys`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
@mxinden
Copy link
Member

mxinden commented Mar 30, 2021

Hi @abhisunkewar,

We would need a whole lot more information from your side to be able to help you. Can you post a small reproducer here?

@dvdplm
Copy link
Contributor

dvdplm commented Mar 31, 2021

I'm seeing the same on master (bb206bc), both rustc 1.53.0-nightly (07e0e2ec2 2021-03-24) and stable rustc 1.51.0 (2fd73fabe 2021-03-23).

Repro: cargo c in the crate root.

dvdplm added a commit that referenced this issue Mar 31, 2021
@mxinden
Copy link
Member

mxinden commented Apr 1, 2021

@abhisunkewar thanks for the report.

libp2p-wasm-ext v0.28.1 published and tagged.

lopopolo added a commit to Kijewski/iana-time-zone that referenced this issue Sep 30, 2022
This fixes the compilation errors with -Zminimal-versions, but I don't know why.
I couldn't find anything in the wasm-bindgen changelogs, but I found these:

- libp2p/rust-libp2p#2020
- libp2p/rust-libp2p#2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants