8

IntelliJ Rust Changelog #139

 4 years ago
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.
neoserver,ios ssh client

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 like cfg_attr(..., derive(...)), cfg_attr(..., path="..."), etc.

    6497.pngGIF
  • Fairly evaluate unknown cfg options to false if there is no custom build script (build.rs) in the package. Previously, in order to avoid wrongly disabling the actual code, unknown cfg options and unknown Cargo features were considered enabled and disabled simultaneously. Note, you can turn on the new logic for packages containing build.rs as well by enabling the experimental build script evaluation: just enable org.rust.cargo.evaluate.build.scripts in Help | Find Action | Experimental Features dialog
  • Improve cfg(test) processing for external dependencies by providing a new heuristic. Now cfg(test) is treated as disabled if there is a cfg(not(test)) condition in the project. Previously, test option was considered enabled and disabled simultaneously, i.e. code under cfg(test) and cfg(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 a cfg(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
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #122

    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
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #123

    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
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #124

    New Features Support 2020.2 EAPs Enable new macro expansion engine in nightly builds ...

  • 43
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #125

    New Features Provide initial support for debugging with MSVC toolchain in CLion 2020.2. You can track current progress and restrictions

  • 26
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #127

    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.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #137

    IntelliJ Rust Changelog #137 14 Dec 2020 New Features Support Find Usages action (Edit | Find Usages or Alt+F7) for Cargo

  • 16
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #136

    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.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #138

    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
    • intellij-rust.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #140

    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.github.io 4 years ago
    • Cache

    IntelliJ Rust Changelog #142

    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