Using wasm-pack with a single Cargo.toml file and many examples

Hello, I am making a small toy 3d renderer using webGPU. I want to use wasm-pack to build the web version for the examples. I am following more or less this guide Dependencies and the window | Learn Wgpu but my folder structure is different.

Github repository

It is a library that contains an examples folder. There is only one Cargo.toml file, and I want to generate a web version for each example, but it looks like wasm-pack is expecting a Cargo.toml file inside very example folder, thing that I do not want.

Do you have any idea about how could I solve the issue?

There is really no way to use wasm-pack to build the examples of a library? what could be a possible alternative?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.