You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
The docs are currently unclear about how to use rustwasm without npm.
I read through the docs multiple times and came out with the vague impression that usage without NodeJS is currently impossible. Someone correcting me on Twitter, and a circuitous search through Reddit finally led me to the solution.
There are the following problems here:
There are two books A and B. There is a lot of overlap between the two books and they are hosted on the same domain. This is confusing to the point where I didn't realize for two days that there are two books on the website. The latter book isn't even linked from the home page.
The first book never mentions (as far as I know) that building without npm is possible. This should be clearly stated, especially when so many people are working on servers in Rust.
The second book also doesn't mention this clearly, but it does contain the --no-modules section that achieves what we want.
How could we improve
Combine the two books into one, or at least make them mutually exclusive in terms of information contained.
If two distinct books are kept, then link them both prominently from the home page.
Make it obvious wherever applicable how to build without npm. Also discuss the --no-typescript option prominently.
DenialAdams, Apromixately and pictographeranderejd