Solana: Proc-macro (<2) support with rust analyzer 0.3.220 or later

Update: Solana Rust Analyzer recognizes the most latest version with Macro Proc Support

The Solana community is always looking for ways to improve the development experience, and a significant update has recently been made to extend the VSCode Oxide analyst. The latest version of 0.3.220 or the rear eliminates maintenance for the macro versions of ProC <2, which are decisive dependencies in many Solana projects.

ProC Macro allows developers to extend the functionality of their code in compilation time, which facilitates writing an effective and support code. However, they require specific characteristics of the compiler that were not available with older versions of oxide, such as <2.

According to the announcement on December 16, 2024, the new version of the Rust Solana analyzer extension eliminates support for ProC Macro versions <2. This means that users who trust SOLANA 1.18.17 or before their projects can find problems when trying to compile the last analyzer.

What does this mean to developers

In order to avoid compatibility problems, it is recommended to update the dependencies of your project to version ≥ 0.3.220 or rear. This update includes several important changes that improve performance and stability:

* Improved maintenance for the more characteristics of oxide : The new analyzer now properly uses the 'ProC_Macro' feature in Solana 1.18.17, which allows for better integration with Macros Proc.

* Better error messages : The updated analyzer provides more information messages for errors to help developers diagnose problems.

* New test cases

: The developer has added new test cases to ensure that the analyst is processing several scenarios.

Update your project

If you are using SOLANA 1.18.17 or before, it is essential to update your project to version ≥ 0.3.220 or back. You can do this from:

  • Installing the latest version of the VSCode Oxide analyst extension from [official storage] (

  • Update your file Load.Toml to make sure it is compatible with the new analyst.

  • Complete the item Build and then check any error or warning.

When you take these steps, you can take advantage of the latest features and improvements in the Rust Solana analysis. Happy codification!

اشتراک گذاری