Installing javascript/css dependencies in my rust web project

Hi, is there any good pattern for installing javascript and css dependencies in my website written in rust? Is there a cargo command available for invoking npm or some kind of javascript package manager? What do people generally do? Do they commit their javascript and css dependencies to their repo?

I run npm manually as a separate step. I suppose it’d be possible to also run it via process::Command from build.rs of the project.

1 Like