I am trying to compile a rust crate using following command:
cargo build --target wasm32-unknown-unknown --release
and It fails showing following error message
error: could not compile `wasm-bindgen-macro` (lib) due to 1 previous error
I checked the cargo tree and no where I am using anything related to wasm-bindgen.
cargo tree
wasm-bindgen
Did you try cargo tree --target wasm32-unknown-unknown? By default cargo tree only shows dependencies that would be used when compiling for the host. You can also use cargo tree --target all to entirely disable the filtering.
cargo tree --target wasm32-unknown-unknown
cargo tree --target all
Thanks @bjorn3 it now shows the dependency!