In my cargo file I have crates I only want to pull in when building a WASM module.
which I accomplish with this:
[target.'cfg(target_arch = "wasm32")'.dependencies]
But there are also crates I only want when it is NOT building for WASM that is for a “native” architecture which could be one of many. I tried the below:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
It parses but does not include the crates specified in the non wasm32 case.