CLion Rust - How can I change platform?

已回答

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.

0
正式评论

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.

请先登录再写评论。