Using [[bin]]
in Cargo.toml allows me to compile multiple binaries from the same source of a Rust project.
But I want to deploy multiple web-components from the same source, and web-components are compiled as libraries. There is, however, no [[lib]]
, only [lib]
which allows only a single compile target.
I am new to Rust and Cargo so I don't yet fully understand every part of the ecosystem entirely, but I wonder how to go about building my multiple web-components without having a dozen small repositories?
If it matters, I plan to use the webcomponent system of web-dom for this project, while I've used wasm-bindgen for another one with a similar setup (but only 2 components, so it wasn't much of an issue).