

IntelliJ Rust Changelog #139
source link: https://intellij-rust.github.io/2021/01/18/changelog-139.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

New Features
Cargo features and cfg
support improvements:
-
Take into account attributes under
cfg_attr
attribute during type inference, name resolution, and other analysis. Now the corresponding features work as expected with code containing attributes likecfg_attr(..., derive(...))
,cfg_attr(..., path="...")
, etc.GIF
- Fairly evaluate unknown
cfg
options tofalse
if there is no custom build script (build.rs
) in the package. Previously, in order to avoid wrongly disabling the actual code, unknowncfg
options and unknown Cargo features were considered enabled and disabled simultaneously. Note, you can turn on the new logic for packages containingbuild.rs
as well by enabling the experimental build script evaluation: just enableorg.rust.cargo.evaluate.build.scripts
inHelp | Find Action | Experimental Features
dialog
- Improve
cfg(test)
processing for external dependencies by providing a new heuristic. Nowcfg(test)
is treated as disabled if there is acfg(not(test))
condition in the project. Previously,test
option was considered enabled and disabled simultaneously, i.e. code undercfg(test)
andcfg(not(test)
was both enabled. Such test attributes are quite complex to handle in the IDE: the tests should not be conditionally disabled since you might want to read and edit them at any time; but only mock objects should be disabled and excluded from code analysis. So the current logic behind that is to disable “test” code only when “mocking”, i.e. when there is acfg(not(test))
somewhere in the code. Note, this new logic currently affects the external dependencies only, excluding your workspace, in order not to break down the code insight for your tests.
Recommend
-
31
Most of the new features in the release have been added by third-party contributors. Many thanks to @Kobzol for the extraordinary amount of contributions! You can partic...
-
36
This is the last release that supports the 2019.3 platform. To receive plugin updates further, please upgrade your IDE to 2020.1. New Features Debugger support outside of CLion: Do no...
-
22
New Features Support 2020.2 EAPs Enable new macro expansion engine in nightly builds ...
-
43
New Features Provide initial support for debugging with MSVC toolchain in CLion 2020.2. You can track current progress and restrictions
-
26
New Features Support Rust documentation rendering in an editor. Just click to the corresponding icon on gutter to look at rendered version of a particular comment. Also, you can enable it by default v...
-
13
IntelliJ Rust Changelog #137 14 Dec 2020 New Features Support Find Usages action (Edit | Find Usages or Alt+F7) for Cargo
-
16
IntelliJ Rust Changelog #136 30 Nov 2020 New Features Introduce the new experimental engine for name resolution (disabled by default). The new algorithm (aka name resolution 2.0) uses the fixed-...
-
16
IntelliJ Rust Changelog #138 28 Dec 2020 New Features Enable Build tool window by default. The Build tool window provides structured output for build
-
17
Please welcome our new documentation 🥳 It covers almost everything about the plugin, from basic how-to-s to detailed feature descriptions ✍️. And we’...
-
21
IntelliJ Rust Changelog #142 1 Mar 2021 New Features Debugging is now available in PyCharm Professional starting with 2021.1 EAPs. Note, it requir...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK