#Check if a target is supported
8 messages · Page 1 of 1 (latest)
not an easy way
- if it's a
no_stdcrate then it probably is, but that's not common - if it needs filesystem, threads, or time, and it isn't specifically noting wasm compatibility then it probably doesn't
- most libraries that are just algorithms 'n' data structures, not caring about the outside world, are compatible
so my best bet is just add it as a dep to my project and try to build it with wasm target right?
yes
will it work if I just add it to cargo.toml without using the actual code?
just to test if it works
You should see it just by adding it to Cargo.toml, and then building the project. IIRC you shouldn't have to actually use anything from the crate.