CLion Rust - How can I change platform?

Answered

I have a Rust project where I am targeting WASM. I am trying to change the IDE to use this platform so code completion and the correct dependencies are used.

I am a new CLion user and I cant seem to find where I can change this.

1 comment
Comment actions Permalink
Official comment

Hello,

If you would like to take a custom target into account for code insight (navigation, completion, highlighting, and so on), you can set the target in the Cargo config file via `build.target` setting. IDE then will consider this file when evaluating `cfg` options. For more information about this, check the corresponding pull request description.

Regarding WASM support for Rust in general, you may also find useful information on the corresponding documentation page.

Please sign in to leave a comment.